Esempio n. 1
0
 public ObjectiveInhibitor(Vector2 position, ObjectiveInhibitorTurret inhibTower)
     : base(position)
 {
     _tower = inhibTower;
     _inhibitor = ObjectManager.Get<Obj_BarracksDampener>().First(tower => Math.Abs(tower.Position.X - position.X) < EstimatedPositionRange && Math.Abs(tower.Position.Y - position.Y) < EstimatedPositionRange);
     RequiredObjectives.Add(inhibTower);
 }
Esempio n. 2
0
 public ObjectiveInhibitor(Vector2 position, ObjectiveInhibitorTurret inhibTower) : base(position)
 {
     _tower     = inhibTower;
     _inhibitor = ObjectManager.Get <Obj_BarracksDampener>().First(tower => Math.Abs(tower.Position.X - position.X) < EstimatedPositionRange && Math.Abs(tower.Position.Y - position.Y) < EstimatedPositionRange);
     RequiredObjectives.Add(inhibTower);
 }