private void DisplayedSoftSkillDescription(BaseSoftSkillSlot softSkillSlot) { Reset(); //title DisplayDescriptionBox(true); SetTitleText(softSkillSlot.SOFTSKILL.GetSoftSkillName(), INST_SoftSkill); softskill_description.SetActive(true); text_softskill_level.text = softSkillSlot.SOFTSKILL.GetCurrentSoftSkillLevel().ToString(); text_softskill_description.text = softSkillSlot.SOFTSKILL.GetSoftSkillDescription().ToString(); bonus_Generator.CreateTemplate(softSkillSlot.SOFTSKILL); }
private void SetSelected(BaseSoftSkillSlot slot, bool selected) { if (selected) { UnDisplayedSoftSkillDescription(slot); SetAllSelectedToFalse(false); slot.IsSelected(false); } else { SetAllSelectedToFalse(true); slot.IsSelected(true); _currentSoftSkillId = slot.SOFTSKILL.SoftSkill_ID; DisplayedSoftSkillDescription(slot); } }
private void UnDisplayedSoftSkillDescription(BaseSoftSkillSlot softSkillSlot) { DisplayDescriptionBox(false); softskill_description.SetActive(false); }
private void SelectedSoftSkillDisplayed(BaseSoftSkillSlot softSkillSlot, bool selected) { SetSelected(softSkillSlot, selected); }
private void OnSoftSkillUpLevelHandler(BaseSoftSkillSlot slot) { DisplayedSoftSkillDescription(slot); }
private void OnPointExitSoftSkillSlotHandler(BaseSoftSkillSlot softSkillSlot) { OnPointExitSoftSkillSlotEvent?.Invoke(softSkillSlot); }
private void OnLeftClickSoftSkillSlotHandler(BaseSoftSkillSlot softSkillSlot, bool selected) { OnLeftClickSoftSkillSlotEvent?.Invoke(softSkillSlot, selected); lastIndex = softSkillSlot.Index; }