コード例 #1
0
ファイル: Skill.cs プロジェクト: sdavidlee/re-gun
 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;
 }
コード例 #2
0
ファイル: SkillsTab.cs プロジェクト: sdavidlee/re-gun
 public SkillIcon GetSkillIcon(SkillShortKeys shortKey) => this.SkillIcons.First(i => i.shortKey == shortKey);