Наследование: UnityEngine.MonoBehaviour
Пример #1
0
 public static GameObject Spawn(this GameObject prefabToSpawn, Vector3 pos, Quaternion rot)
 {
     return(PoolsManager.Spawn(prefabToSpawn, pos, rot));
 }
Пример #2
0
 public static T Spawn <T>(this GameObject prefabToSpawn, Vector3 pos, Quaternion rot) where T : Component
 {
     return(PoolsManager.Spawn(prefabToSpawn, pos, rot).GetComponent <T>());
 }
Пример #3
0
 public static void Despawn(this GameObject objToDespawn)
 {
     PoolsManager.Despawn(objToDespawn);
 }
Пример #4
0
 private void Start()
 {
     poolObj = PoolsManager.Instance;
     StartCoroutine(RandomSpawning());
 }