Exemplo n.º 1
0
 public void Return(RentableObject returnObject)
 {
     returnObject.Return(this);
     if (rentalContainers.ContainsKey(returnObject.ObjectPoolKey))
     {
         rentalContainers[returnObject.ObjectPoolKey].Return(returnObject);
     }
     else
     {
         Debug.LogWarning(string.Format("Destroy {0} object. container({1}) is not exist or destroyed.", returnObject.name, returnObject.ObjectPoolKey));
         Destroy(returnObject.gameObject);
     }
 }