void Init() { m_BaseWndObject = GameObject.Instantiate(GlobalHallUIMgr.Instance.GlobalUIObject[0]) as GameObject; m_BaseTrans = m_BaseWndObject.transform; m_BaseTrans.SetParent(SceneObjMgr.Instance.UIPanelTransform, false); for (byte i = 0; i < m_MgrBtn.Length; ++i) { m_MgrBtn[i].m_IsChecked = false; m_MgrBtn[i].m_Tag = i; m_MgrBtn[i].m_UIBtn = m_BaseTrans.GetChild(i + 1).GetComponent <UIButton>(); m_AccountMgrTrans[i] = m_BaseTrans.GetChild(i + 1); UIEventListener.Get(m_BaseTrans.GetChild(i + 1).gameObject).onClick = ChangeWndUI; } m_MgrBtn[(int)m_MgrUITyp].m_IsChecked = true; m_PrsswordMgrUI.Init(m_BaseTrans.GetChild(6).gameObject); m_BindMobile.Init(m_BaseTrans.GetChild(7).gameObject); m_phoneps.Init(m_BaseTrans.GetChild(8).gameObject); m_Certification.Init(m_BaseTrans.GetChild(9).gameObject); m_ReceiverAddress.Init(m_BaseTrans.GetChild(10).gameObject); UIEventListener.Get(m_BaseTrans.GetChild(0).gameObject).onClick = OnCloseWnd; if (SDKMgr.IS_SDK_CHANNEL || ThirdLogon.Instance.m_blogon) { //(1,2)3,4,往前移一格 m_AccountMgrTrans[0].gameObject.SetActive(false); m_AccountMgrTrans[4].position = m_AccountMgrTrans[3].position; m_AccountMgrTrans[3].position = m_AccountMgrTrans[2].position; m_AccountMgrTrans[2].position = m_AccountMgrTrans[1].position = m_AccountMgrTrans[0].position; } else { } SetBindBtn(); }