コード例 #1
0
 void OnDestroy()
 {
     isBeingDestroyed = true;
     ///TODO: investigate a weird error "Some objects were not cleaned up when closing the scene."
     Debug.Log("Destroying PoolManager");
     DestroyAllObjectPools();
     instance = null;
 }
コード例 #2
0
	void OnDestroy() {
		isBeingDestroyed = true;
		///TODO: investigate a weird error "Some objects were not cleaned up when closing the scene."
		Debug.Log("Destroying PoolManager");
		DestroyAllObjectPools();
		instance = null;
	}