private void SetSelected(BaseHardSkillSlot slot, bool selected) { if (selected) { UnDisplayedHardSkillDescription(slot); SetAllSelectedToFalse(false); slot.IsSelected(false); } else { SetAllSelectedToFalse(true); slot.IsSelected(true); DisplayedHardSkillDescription(slot); } }
private void DisplayedHardSkillDescription(BaseHardSkillSlot hardSkillSlot) { Reset(); //title DisplayDescriptionBox(true); SetTitleText(hardSkillSlot.HARDSKILL.Hardskill_name, INST_HardSkill); hardskill_description.SetActive(true); text_hardskill_level.text = hardSkillSlot.HARDSKILL.CurrentLevel.ToString(); text_hardskill_currentExp.text = hardSkillSlot.HARDSKILL.CurrentExp.ToString(); text_hardskill_requiredExp.text = hardSkillSlot.HARDSKILL.GetExpRequire().ToString(); text_hardskill_description.text = hardSkillSlot.HARDSKILL.Hardskill_description; image_hardskill_exp.fillAmount = hardSkillSlot.HARDSKILL.GetExpFillAmount(); status_Generator.CreateTemplate(hardSkillSlot.HARDSKILL); }
private void UnDisplayedHardSkillDescription(BaseHardSkillSlot hardSkillSlot) { DisplayDescriptionBox(false); hardskill_description.SetActive(false); }
private void SelectedHardSkillDisplayed(BaseHardSkillSlot hardSkillSlot, bool selected) { SetSelected(hardSkillSlot, selected); }
private void OnLeftClickHardSkillSlotHandler(BaseHardSkillSlot hardSkillSlot, bool selected) { OnLeftClickHardSkillSlotEvent?.Invoke(hardSkillSlot, selected); }
private void OnPointEnterHardSkillSlotHandler(BaseHardSkillSlot hardSkillSlot) { OnPointEnterHardSkillSlotEvent?.Invoke(hardSkillSlot); }