Example #1
0
 public void ChangedTarget(object sender, TargetButton.TargetButtonClickArgs e)
 {
     if (Unit.ActiveUnit.selectedAbility == null ||
         Unit.ActiveUnit.selectedAbility.TargetingType != Ability.TargetingTypes.Single)
     {
         ChangeAbility(sender, new AbilityButton.OnAbilityButtonClickArgs
         {
             SelectedAbility = Unit.ActiveUnit.abilities[0]
         });
     }
 }
Example #2
0
 private void ChangeTarget(object sender, TargetButton.TargetButtonClickArgs e)
 {
     Unit.ActiveUnit.targetUnit = e.SelectedUnit;
     UpdateTargetPanel();
 }