コード例 #1
0
 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()
             )
         );
 }
コード例 #2
0
 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()
             )
         );
 }