I got my code something like this :
class First(){
void Start(){
void1();
}
}
class Second(){
void Start(){
void2();
}
}
I am getting NullReferenceException because both class are running in same time.
But void2() is needed to wait for void1() to be complete.
How I can make sure void1 had been complete before proceed to void2?
I saw some answers that told me to make it wait so the void1 can be finished.
Or adjust the order of scripts setting in Unity.
But I want some better ways to do this instead of just wait.
(Sorry for my lack of knowledge, but I really hope to solve this.)