Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 public static bool Spawn(Enum idEnum, SpawnPointController spawnPointController, SpawnDistanceType spawnDistance, out Poolable poolable)
 => Spawn(idEnum.ToString(), spawnPointController, spawnDistance, out poolable);