public void HotKeyDeletePress(Transform self) { SoundDatabase.PlaySound(21); int selfIndex = self.GetSiblingIndex(); PanelSkill panelSkill = hotSkillPanel.transform.GetChild(selfIndex).GetComponent <PanelSkill>(); panelSkill.cooldownCircle.fillAmount = 0; panelSkill.playerSkill = null; panelSkill.UpdateImage(); }
public void HotkeyAssignPress(Transform self) { SoundDatabase.PlaySound(32); int selfIndex = self.GetSiblingIndex(); PanelSkill panelSkill = hotSkillPanel.transform.GetChild(selfIndex).GetComponent <PanelSkill>(); panelSkill.playerSkill = currentSkill; panelSkill.UpdateImage(); hotkeyAssign.SetActive(!hotkeyAssign.activeInHierarchy); }