void OnClick() { UnityEngine.GameObject ipgo = UIManager.Instance.GetWindowGoByName("ItemProperty"); if (ipgo != null && !NGUITools.GetActive(ipgo)) { ItemProperty ip = ipgo.GetComponent <ItemProperty>(); ip.ShowItemProperty(m_ItemId, 1); //UIManager.Instance.HideWindowByName("EntrancePanel"); UIManager.Instance.ShowWindowByName("ItemProperty"); } }