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