Until now, I've been coding thinking that functions in monobehaviour would be executed in this order:
OnEnable > Start > Update > OnDisable
The problem is that I thought that this order would be absolute, meaning that until a function is not completely finished, there's no way that the next one would start being executed.
So first question is: Is that true? Would update NOT be executed until start ends?
Then my problem arises with synchronization between different monobehaviour classes.
I have a class that creates some objects (a Menu basically) in its start function. Then in a different class, I've a similar code, but it also depends on the object created by the first class to exist already. I'm getting an error because the object is not found yet.
NullReferenceException: Object reference not set to an instance of an object Sho