// 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(); }
public static void InvokeSetAbility(Mobile mobile, int index) => SetAbility?.Invoke(mobile, index);
public static void InvokeSetAbility(SetAbilityEventArgs e) { SetAbility?.Invoke(e); }