public Skill(string skillName, float cooltime, SkillShortKeys shortKey, PlayerAnimations animation = PlayerAnimations.UsingSkill, Action action = null) { this.SkillName = skillName; this.CoolTime = cooltime; this.NextAvailableAttack = 0; this.shortKey = shortKey; this.targetAnimation = animation; this.action = action; }
public SkillIcon GetSkillIcon(SkillShortKeys shortKey) => this.SkillIcons.First(i => i.shortKey == shortKey);