void UnloadUnit() { if (_DeploymentPage.SelectedUnit != null) { var order = new UnloadOrder(_DeploymentPage.SelectedUnit, false); if (!_Controller.ExecuteOrderAndAlert(order)) { _Controller.Alert(order.Validate().ToString()); } } }
public void UnloadUnit() { if (SelectedUnit == null) { return; } var order = new UnloadOrder( SelectedUnit, CurrentTurn.TurnComponent != TurnComponent.DEPLOYMENT); if (ExecuteOrderAndAlert(order) && order.UseMovement) { SelectUnit(null); UnHighlight(); } else { SelectUnit(SelectedUnit); } }