Unity Instantiate各函数执行顺序

 GameObject go = Instantiate(aaa) ;
        go.GetComponent<NewBehaviourScript>().Init();

Instantiate一个gameobject后,马上执行一个自定义的方法Init,经过测试发现顺序为Awake Init Start Update。

posted @ 2017-12-02 23:26  Litmin  阅读(1409)  评论(0编辑  收藏  举报