public static void DestroyAll <T> (this T prefab) where T : Component { ObjectPool.DestroyAll(prefab.gameObject); }
public static void DestroyAll(this GameObject prefab) { ObjectPool.DestroyAll(prefab); }
public static void DestroyAll <T> (this T prefab) where T : Component { ObjectPool.DestroyAll(prefab.gameObject); }
public static void DestroyAll(this GameObject prefab) { ObjectPool.DestroyAll(prefab); }