Hello, I’m really enjoying the course so far and I’ve got some problems with the first part of Realm Rush. any help is appreciated
Why does it break the script if i put it on the Awake() when I’m doing exactly like the course? I’ve attached it to the text object in my prefab,it just plays out
NullReferenceException: Object reference not set to an instance of an object
CoordinateLabler.DisplayCoordinates () (at Assets/Scripts/CoordinateLabler.cs:33)
CoordinateLabler.Awake () (at Assets/Scripts/CoordinateLabler.cs:15)
When I remove it from awake it just works fine (except for when i go into play mode, then it does not retain the coordinates). it just makes me scratch my head. am I missing something obvious? From what I’ve read its because the object is NULL but why is it working in the lecture?
ok so now its just broken