Exemplo n.º 1
0
 /// <summary>
 /// 点击装备槽位
 /// </summary>
 public void OnClick_Equip_SHOES()
 {
     if (null == m_GemView)
     {
         LogModule.ErrorLog("m_GemView is null");
         return;
     }
     if (m_GemView.activeSelf && OtherGemViewLogic.Instance() != null)
     {
         OtherGemViewLogic.Instance().OnClickEquiSlot((int)EquipPackSlot.Slot_SHOES);
         ClearAllSlotChoose();
         int index = GetIndexByEquipSlot((int)EquipPackSlot.Slot_SHOES);
         if (index < m_EquipSlotChooseSprite.Length)
         {
             m_EquipSlotChooseSprite[index].gameObject.SetActive(true);
         }
     }
     else
     {
         GameItem item = GameManager.gameManager.OtherPlayerData.EquipPack.GetItem(5);
         if (item != null && item.IsValid())
         {
             EquipTooltipsLogic.ShowEquipTooltip(item, EquipTooltipsLogic.ShowType.Info);
         }
     }
 }
Exemplo n.º 2
0
 void OnDestroy()
 {
     m_Instance = null;
 }
Exemplo n.º 3
0
 void Awake()
 {
     m_Instance = this;
 }