Пример #1
0
 private void UnlockSkill(SkillType skillType)
 {
     if (!IsSkillUnlocked(skillType))
     {
         unlockedSkillTypeList.Add(skillType);
         OnSkillUnlocked?.Invoke(this, new OnSkillUnlockedEventArgs {
             skillType = skillType
         });
     }
 }
Пример #2
0
 private void UnlockSkill(BaseSkill skill)
 {
     if (!IsSkillUnlocked(skill))
     {
         unlockedSkills.Add(skill);
         OnSkillUnlocked?.Invoke(this, new OnSkillUnlockedEventArgs {
             skill = skill
         });
     }
 }
Пример #3
0
 private void UnlockSkill(SkillType skillType)
 {
     if ((!IsSkillTypeUnlocked(skillType) && GLOBAL_DATA.Instance.Level - 1 > unlockedSkillTypeList.Count) || devMode)
     {
         unlockedSkillTypeList.Add(skillType);
         GLOBAL_DATA.Instance.unlockedSkillTypeList = unlockedSkillTypeList;
         OnSkillUnlocked?.Invoke(this, new OnSkillUnlockedEventArgs {
             skillType = skillType
         });
     }
 }
Пример #4
0
 public static void OnSkillUnlockedFunc(SkillType skill)
 {
     OnSkillUnlocked?.Invoke(skill);
 }