Ejemplo n.º 1
0
 private void UnlockSkill(SkillType skillType)
 {
     if (!IsSkillUnlocked(skillType))
     {
         unlockedSkillTypeList.Add(skillType);
         OnSkillUnlocked?.Invoke(this, new OnSkillUnlockedEventArgs {
             skillType = skillType
         });
     }
 }
Ejemplo n.º 2
0
 private void UnlockSkill(BaseSkill skill)
 {
     if (!IsSkillUnlocked(skill))
     {
         unlockedSkills.Add(skill);
         OnSkillUnlocked?.Invoke(this, new OnSkillUnlockedEventArgs {
             skill = skill
         });
     }
 }
Ejemplo n.º 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
         });
     }
 }
Ejemplo n.º 4
0
 public static void OnSkillUnlockedFunc(SkillType skill)
 {
     OnSkillUnlocked?.Invoke(skill);
 }