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