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, SpawnPointController spawnPointController, SpawnDistanceType spawnDistance, out Poolable poolable) => Spawn(idEnum.ToString(), spawnPointController, spawnDistance, out poolable);