private void Awake() { if (instance == null) { instance = this; } forgingUpgradeSlotList.OnRightClickEvent += Unequip; }
private void OnValidate() { if (itemSlotList == null) { itemSlotList = FindObjectOfType <ItemSlotList>(); } if (talentPanel == null) { talentPanel = FindObjectOfType <TalentPanel>(); } if (equipMentSlotList == null) { equipMentSlotList = FindObjectOfType <EquipmentPanel>(); } if (forgingUpgradePanel == null) { forgingUpgradePanel = FindObjectOfType <ForgingUpgradePanel>(); } }