Esempio n. 1
0
 public static GameObject Spawn(this GameObject prefab, Transform parent)
 {
     return(GameObjectPool.Spawn(prefab, parent, Vector3.zero, Quaternion.identity));
 }
Esempio n. 2
0
 public static GameObject Spawn(this GameObject prefab)
 {
     return(GameObjectPool.Spawn(prefab, null, Vector3.zero, Quaternion.identity));
 }
Esempio n. 3
0
 public static GameObject Spawn(this GameObject prefab, Vector3 position)
 {
     return(GameObjectPool.Spawn(prefab, null, position, Quaternion.identity));
 }
Esempio n. 4
0
 public static GameObject Spawn(this GameObject prefab, Transform parent, Vector3 position, Quaternion rotation)
 {
     return(GameObjectPool.Spawn(prefab, parent, position, rotation));
 }
Esempio n. 5
0
 public static T Spawn <T>(this T prefab) where T : Component
 {
     return(GameObjectPool.Spawn(prefab, null, Vector3.zero, Quaternion.identity));
 }
Esempio n. 6
0
 public static T Spawn <T>(this T prefab, Transform parent) where T : Component
 {
     return(GameObjectPool.Spawn(prefab, parent, Vector3.zero, Quaternion.identity));
 }
Esempio n. 7
0
 public static T Spawn <T>(this T prefab, Vector3 position, Quaternion rotation) where T : Component
 {
     return(GameObjectPool.Spawn(prefab, null, position, rotation));
 }