コード例 #1
0
    private void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }

        forgingUpgradeSlotList.OnRightClickEvent += Unequip;
    }
コード例 #2
0
 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>();
     }
 }