public void MoveEnemiesToSpawnPoints() { MoveToSpawnPoints( Entities.AliveInTeam(2), GetRandomSpawnPoints( Entities.AliveInTeam(1) .Select(entity => entity.transform.position) .Concat(new[] { EnterLocation.With(z: 0), ExitLocation.With(z: 0) }) .ToList() ) ); }
public void MoveAlliesToExit() { MoveToSpawnPoints( Entities.AliveInTeam(1), GetSpawnPointsNearby( ExitLocation, Entities.AliveInTeam(2) .Select(entity => entity.transform.position) .Concat(new[] { EnterLocation.With(z: 0), ExitLocation.With(z: 0) }) .ToList() ) ); }