public void UnregisterSpawnLocationWithService(ISpawnLocationInterface inLocation) { if (_spawnLocations.Contains(inLocation)) { _spawnLocations.Remove(inLocation); } else { Debug.LogError("Tried to unregister a spawn location that wasn't registered!"); } }
public void RegisterSpawnLocationWithService(ISpawnLocationInterface inLocation) { if (!_spawnLocations.Contains(inLocation)) { _spawnLocations.Add(inLocation); } else { Debug.LogError("Tried to register a spawn location that was already registered!"); } }
public void UnregisterSpawnLocationWithService(ISpawnLocationInterface inLocation) { UnregisteredSpawnLocation = inLocation; }