/// <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); } } }
void OnDestroy() { m_Instance = null; }
void Awake() { m_Instance = this; }