public void UpdateSelectedSkillSlot() { if (currentSkillSlot != null) { currentSkillSlot.SetAsUnselectedSkillSlot(); } currentSkillSlot = skillSlotList[curSkillIdx]; skillSlotList[curSkillIdx].SetAsCurrentSkillSlot(); }
public void Start() { if (skillSlotList != null && skillSlotList.Count > 0) { currentSkillSlot = skillSlotList[0]; currentSkillSlot.SetAsCurrentSkillSlot(); for (int i = 0; i < skillSlotList.Count; i++) { skillSlotList[i].myController = this; } } }