I would like to understand the flow of Execution of scripts.
For understanding am attaching a picture.
What I Want:
If A & B are attached scripts to same gameobject, I would like to access var temp from A, whose value is assigned in A->Awake() in B->Awake().
What is happening Currently:
When am trying to access var temp in B->Awake(), that variable is still null.
Specific Question:
What is order of execution in this case? Is it parallel ? or simultaneous ? or some other. How can I access temp with value in B->Awake() without changing the access from Awake() to Start()
submitted by /u/ScarblaZ
[link] [comments]
Unity 3D – News, Help, Resources, and Conversation