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); }
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); }