private void ProcessTarget() { if (RTSGameController.TargetExistAndReachable(TargetableShip, _currTarget, attackRange)) { return; } _currTarget = RTSGameController.GetClosestTarget(TargetableShip, attackRange, _prefTarget); }
private void AutoTargetAttack() { if (_fireMode == FireMode.NoGuns || _fireMode == FireMode.OnlyOnboard) { return; } if (RTSGameController.TargetExistAndReachable(this, _currTarget, _weaponManager.AttackRange)) { ProcessShootMovements(); return; } _currTarget = RTSGameController.GetClosestTarget(this, _weaponManager.AttackRange); }