Example #1
0
 public static GameObject Spawn(this GameObject prefab, Transform parent, Vector3 position, string name = "")
 {
     return(SpacePool.FinalSpawn(prefab, parent, position, Quaternion.identity, name));
 }
Example #2
0
 public static GameObject Spawn(this GameObject prefab, string name = "")
 {
     return(SpacePool.FinalSpawn(prefab, null, Vector3.zero, Quaternion.identity, name));
 }
Example #3
0
 public static GameObject Spawn(this GameObject prefab, Vector3 position, Quaternion rotation, string name = "")
 {
     return(SpacePool.FinalSpawn(prefab, null, position, rotation, name));
 }