Esempio n. 1
0
 public ObjectiveBase(Vector2 position, ObjectiveBaseTurret turret1, ObjectiveBaseTurret turret2)
     : base(position)
 {
     Object = ObjectManager.Get<Obj_HQ>().First(tower => Math.Abs(tower.Position.X - position.X) < ObjectiveOuterTurret.EstimatedPositionRange && Math.Abs(tower.Position.Y - position.Y) < ObjectiveOuterTurret.EstimatedPositionRange);
     _turret1 = turret1;
     _turret2 = turret2;
     RequiredObjectives.Add(turret1);
     RequiredObjectives.Add(turret2);
 }
Esempio n. 2
0
 public ObjectiveBase(Vector2 position, ObjectiveBaseTurret turret1, ObjectiveBaseTurret turret2)
     : base(position)
 {
     Object   = ObjectManager.Get <Obj_HQ>().First(tower => Math.Abs(tower.Position.X - position.X) < ObjectiveOuterTurret.EstimatedPositionRange && Math.Abs(tower.Position.Y - position.Y) < ObjectiveOuterTurret.EstimatedPositionRange);
     _turret1 = turret1;
     _turret2 = turret2;
     RequiredObjectives.Add(turret1);
     RequiredObjectives.Add(turret2);
 }