Kissen
Member
- Joined
- Jun 20, 2019
- Messages
- 13
- Programming Experience
- Beginner
I run this code from withing another script and get this error:
NullReferenceException: Object reference not set to an instance of an object
move.Update () (at Assets/Scripts/move.cs:44)
Where management is a script and newDayy is a bool.
newDayy is also defaulted a value in the inspector.
NullReferenceException: Object reference not set to an instance of an object
move.Update () (at Assets/Scripts/move.cs:44)
C#:
GetComponent<Management>().newDayy = true;
Where management is a script and newDayy is a bool.
newDayy is also defaulted a value in the inspector.