private void Awake() { onSkillPanelToggle += ToggleSkillPanel; OnGetSkills += GetCharacterSkills; OnClearSkills += ClearButtonList; _rt = _skillPanel.GetComponent <RectTransform>(); _startPos = _rt.anchoredPosition.x; _endPos = _rt.anchoredPosition.x + 250; //_skillPanel.transform.localScale = Vector3.zero; }
private void OnDisable() { onSkillPanelToggle -= ToggleSkillPanel; OnGetSkills -= GetCharacterSkills; OnClearSkills -= ClearButtonList; }