Ejemplo n.º 1
0
 private void SetTarget(SpaceObject newTarget)
 {
     NewTargetToMove  = newTarget;
     NewTargetToAtack = newTarget.Type == TypeSO.ship ? newTarget : null;
     Console.WriteLine("{0} id {1} target to move {2} , target to atack {3}", newTarget.Type, p.Id, NewTargetToMove?.Id, NewTargetToAtack?.Id);
 }