protected virtual void AnimEvent_DropMagazine() { if (droppedMagazinePrefab != null) { ObjPoolingManager.Spawn(droppedMagazinePrefab, magazineDropPos.position, transform.rotation); } }
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)); }
public static T Spawn <T>(this T prefab, Vector2 pos, bool canCreateNew = true) where T : PoolingObj { return(ObjPoolingManager.Spawn(prefab, pos, canCreateNew)); }