コード例 #1
0
 protected virtual void AnimEvent_DropMagazine()
 {
     if (droppedMagazinePrefab != null)
     {
         ObjPoolingManager.Spawn(droppedMagazinePrefab, magazineDropPos.position, transform.rotation);
     }
 }
コード例 #2
0
 public static T Spawn <T>(this T prefab, Transform parent, Vector2 localPos, bool canCreateNew = true) where T : PoolingObj
 {
     return(ObjPoolingManager.Spawn(prefab, parent, localPos, canCreateNew));
 }
コード例 #3
0
 public static T Spawn <T>(this T prefab, Vector2 pos, bool canCreateNew = true) where T : PoolingObj
 {
     return(ObjPoolingManager.Spawn(prefab, pos, canCreateNew));
 }