Пример #1
0
 public static void DestroyAll <T>(this T prefab) where T : Component
 {
     GenericObjectPool.DestroyAll(prefab.gameObject);
 }
Пример #2
0
 public static void DestroyAll(this GameObject prefab)
 {
     GenericObjectPool.DestroyAll(prefab);
 }