예제 #1
0
 /// <summary>
 /// Checks if a gameobject is in the inactive objectpool.
 /// </summary>
 /// <param name="item">The gameobject to check.</param>
 /// <returns>True if the gameobject is in the inactive objectpool, otherwise false.</returns>
 public bool ContainsInactive(GameObject item)
 {
     return(ActiveObject.Contains(item));
 }
예제 #2
0
 /// <summary>
 /// Checks if a gameobject is in the objectpool.
 /// </summary>
 /// <param name="item">The gameobject to check.</param>
 /// <returns>True if the gameobject is in the objectpool, otherwise false.</returns>
 public bool Contains(GameObject item)
 {
     return(ActiveObject.Contains(item) || DespawnedElements.Contains(item));
 }