void LoadUnit(Unit Unit) { if (_DeploymentPage.SelectedUnit != null) { var order = new LoadOrder(_DeploymentPage.SelectedUnit, Unit, false); if (!_Controller.ExecuteOrderAndAlert(order)) { _Controller.Alert(order.Validate()); } } Clear(); }
void LoadUnit(Unit Unit) { if (SelectedUnit != null) { var order = new LoadOrder( SelectedUnit, Unit, CurrentTurn.TurnComponent != TurnComponent.DEPLOYMENT); if (ExecuteOrderAndAlert(order) && order.UseMovement) { SelectUnit(null); UnHighlight(); } else { SelectUnit(SelectedUnit); } } Clear(); }