public Ability(KeyCode activationKey, AbilityType type, Unit activator, Func <Ability, IEnumerator> routine, float reloadTime, AbilitySprite abilitySprite, int id, string aName, string description = "") { this.reloadTime = reloadTime; this.type = type; this.activationKey = activationKey; this.activator = activator; this.routine = routine; this.abilitySprite = abilitySprite; this.id = id; this.description = description; this.aName = aName; }
public Sprite getAbilitSprite(AbilitySprite ab) { return(icons[(int)ab].icon); }
public void ChangeSpriteTo(AbilitySprite ass) { abilitySprite = ass; OnSpriteChange?.Invoke(this, EventArgs.Empty); }