public static bool Spawn(string id, out Poolable poolable) => Instance.ExecuteSpawn(id, Vector3.zero, out poolable);
public static bool Spawn(string id, SpawnPoint[] spawnPoints, SpawnDistanceType spawnDistance, out Poolable poolable) { var spawnPoint = SpawnerUtils.FetchSpawnPoint(spawnPoints, spawnDistance); spawnPoint.MarkUse(); return(Instance.ExecuteSpawn(id, spawnPoint.Position, out poolable)); }
public static bool Spawn(string enumId, Transform transform, out Poolable poolable) => Instance.ExecuteSpawn(enumId, transform.position, out poolable);
public static bool Spawn(string id, SpawnPointController spawnPointController, SpawnDistanceType spawnDistance, out Poolable poolable) { var spawnPoint = spawnPointController.FetchSpawnPoint(spawnDistance); spawnPoint.MarkUse(); return(Instance.ExecuteSpawn(id, spawnPoint.Position, out poolable)); }
public static bool Spawn(Enum idEnum, out Poolable poolable) => Instance.ExecuteSpawn(idEnum.ToString(), Vector3.zero, out poolable);
public static bool Spawn(Enum idEnum, Transform transform, out Poolable poolable) => Instance.ExecuteSpawn(idEnum.ToString(), transform.position, out poolable);
public static bool Spawn(Enum idEnum, SpawnPoint[] spawnPoints, SpawnDistanceType spawnDistance, out Poolable poolable) => Spawn(idEnum.ToString(), spawnPoints, spawnDistance, out poolable);
public static bool Spawn(Enum idEnum, SpawnPointController spawnPointController, SpawnDistanceType spawnDistance, out Poolable poolable) => Spawn(idEnum.ToString(), spawnPointController, spawnDistance, out poolable);