예제 #1
0
 protected override void Reset()
 {
     if (string.IsNullOrEmpty(_poolName))
     {
         Log.Exception(MessageGroup.Common, "Pool name is nulled or empty !!!");
         return;
     }
     DevilPoolManager.UnregisterPool(_poolName);
 }
예제 #2
0
 private void RegisterMyself()
 {
     if (string.IsNullOrEmpty(_poolName))
     {
         Log.Exception(MessageGroup.Common, "Pool name is nulled or empty !!!");
         return;
     }
     if (_listOfPrefabs == null)
     {
         _listOfPrefabs = new List <DevilObjectData>();
     }
     DevilPoolManager.RegisterPool(_poolName, this);
 }