public void ClickGemInList(GameObject obj) { if (m_NewPlayerGuide_Step == 1) { NewPlayerGuide(2); } if (m_NewPlayerGuide_Step == 4) { NewPlayerGuide(5); } int ItemIndex = System.Convert.ToInt32(obj.name) - 1000; if (ItemIndex >= 0 && ItemIndex < m_GemItemList.Count) { ClearGemItemChoose(); m_CurGemItem = m_GemItemList[ItemIndex]; Transform transform = obj.transform.FindChild("ItemSlot"); if (transform != null) { ItemSlotLogic tempIS = transform.gameObject.GetComponent <ItemSlotLogic>(); if (tempIS != null) { tempIS.ItemSlotChoose(); } } ShowChooseGemInfo(m_CurGemItem); } }