Example #1
0
 public static T Spawn <T>(this T prefab) where T : Component
 {
     return(ObjectPool.Spawn(prefab, Vector3.zero, Quaternion.identity));
 }
Example #2
0
 public static T Spawn <T>(this T prefab, Vector3 position, Quaternion rotation) where T : Component
 {
     return(ObjectPool.Spawn(prefab, position, rotation));
 }