Beispiel #1
0
 void OnDestroy(GameObject rGo)
 {
     UtilTool.SafeDestroy(rGo);
 }
Beispiel #2
0
 public void Initialize()
 {
     mCoroutineRootObj = new GameObject("___CoroutineRoot");
     UtilTool.ResetTransform(mCoroutineRootObj.transform);
     GameObject.DontDestroyOnLoad(mCoroutineRootObj);
 }
Beispiel #3
0
 public void Destroy()
 {
     mPrefabGo = null;
     mObjectPool.Destory();
     UtilTool.SafeDestroy(RootGo);
 }