// Атака нацеленного юнита private void AttackTarget() { foreach (ShipWeapon LWeapon in FSelf.Weapons) { LWeapon.Attack(); } }
// Перемещение на указанный слот планеты 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); } }