コード例 #1
0
 private void OnDestroy()
 {
     if (!_destroyCacheFlag)
     {
         _pool.DeleteFromInstance(this);
     }
 }
コード例 #2
0
 /// <summary>
 /// Automatic callback when gameObject is destroyed.
 /// </summary>
 private void OnDestroy()
 {
     if (!_deactivateCacheFlag)
     {
         _pool.DeleteFromInstance(this);
     }
     else
     {
         _deactivateCacheFlag = false;
     }
 }
コード例 #3
0
 public void DeleteObjectInstance()
 {
     _pool.DeleteFromInstance(this);
 }