// sets the ability property and does any necessary behavior for making the ability active
    public void EquipAbility(Ability ability)
    {
        EquippedAbility = ability;
        Debug.Log(EquippedAbility);

        SetAbility?.Invoke(EquippedAbility.abilityName, EquippedAbility.abilityColor, EquippedAbility.abilitySprite);
        _cooldownMinusCast = EquippedAbility.cooldown - EquippedAbility.castTime;
        EquippedAbility.Setup();
    }
예제 #2
0
 public static void InvokeSetAbility(Mobile mobile, int index) => SetAbility?.Invoke(mobile, index);
예제 #3
0
 public static void InvokeSetAbility(SetAbilityEventArgs e)
 {
     SetAbility?.Invoke(e);
 }