示例#1
0
 // Атака нацеленного юнита
 private void AttackTarget()
 {
     foreach (ShipWeapon LWeapon in FSelf.Weapons)
     {
         LWeapon.Attack();
     }
 }
示例#2
0
 // Перемещение на указанный слот планеты
 public void MoveToLanding(Planet APlanet, int ASlot)
 {
     FSelf.Landing = APlanet.SlotByIndex(ASlot);
     FSelf.Planet.Ships.Remove(FSelf);
     FSelf.Planet = APlanet;
     FSelf.Transform.SetParent(FSelf.Landing.Transform, false);
     FSelf.Planet.Ships.Add(FSelf);
     foreach (ShipWeapon LWeapon in FSelf.Weapons)
     {
         LWeapon.Retarget(null);
     }
 }