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