예제 #1
0
파일: ObjectPool.cs 프로젝트: hgpdai/knight
 public void Destroy()
 {
     UtilTool.SafeDestroy(this.templateGo);
     UtilTool.SafeDestroy(this.rootGo);
     this.objectsCache.Clear();
 }
예제 #2
0
 public void Destroy()
 {
     this.mObjectPool.Destroy();
     UtilTool.SafeDestroy(this.mRootGo);
 }
예제 #3
0
 private void OnDestroy(GameObject rGo)
 {
     UtilTool.SafeDestroy(rGo);
 }
 public void Destroy()
 {
     this.mPrefabGo = null;
     this.mObjectPool.Destroy();
     UtilTool.SafeDestroy(this.mRootGo);
 }