Hi there,
I understand the Start method in a script will run once in the beginning of the program. But the problem is, there can be many different scripts at a time, so how does Unity decide which Start method from which script should run first? In my case, I want Start A in scriptA to run first and StartB in scriptB to run second because a public variable a in scriptA, which will be assigned a value in StartA, will be used in StartB. But now, every time when I click play, since the order goes another way around, when StartA runs, variable a hasn’t been assigned the correct value yet, therefore I get an error. So the key to solve the issue is to be able to set the execution order manually. So is there a way to do that in Unity?
thanks,
Tim