コード例 #1
0
ファイル: FUI_Login.cs プロジェクト: wqaetly/ET
        public override void Dispose()
        {
            if (IsDisposed)
            {
                return;
            }

            base.Dispose();

            self.Remove();
            self = null;

            m_Gro_ShowVersionInfo = null;
            m_n0  = null;
            m_n9  = null;
            m_n10 = null;
            m_Btn_Login.Dispose();
            m_Btn_Login = null;
            m_Btn_Registe.Dispose();
            m_Btn_Registe   = null;
            m_accountInput  = null;
            m_passwordInput = null;
            m_accountText   = null;
            m_Tex_LoginInfo = null;
            m_ToTestSceneBtn.Dispose();
            m_ToTestSceneBtn = null;
            m_passwordText   = null;
            m_Gro_LoginInfo  = null;
            m_t0             = null;
            m_t1             = null;
        }
コード例 #2
0
ファイル: FUI_Login.cs プロジェクト: wqaetly/ET
        public void Awake(GObject go)
        {
            if (go == null)
            {
                return;
            }

            GObject = go;

            if (string.IsNullOrWhiteSpace(Name))
            {
                Name = Id.ToString();
            }

            self = (GComponent)go;

            self.Add(this);

            var com = go.asCom;

            if (com != null)
            {
                m_Gro_ShowVersionInfo = com.GetControllerAt(0);
                m_n0             = (GImage)com.GetChildAt(0);
                m_n9             = (GImage)com.GetChildAt(1);
                m_n10            = (GTextField)com.GetChildAt(2);
                m_Btn_Login      = FUI_Btn_Login.Create(domain, com.GetChildAt(3));
                m_Btn_Registe    = FUI_Btn_Registe.Create(domain, com.GetChildAt(4));
                m_accountInput   = (GImage)com.GetChildAt(5);
                m_passwordInput  = (GImage)com.GetChildAt(6);
                m_accountText    = (GTextInput)com.GetChildAt(7);
                m_Tex_LoginInfo  = (GTextField)com.GetChildAt(8);
                m_ToTestSceneBtn = FUI_Btn_ToTestScene.Create(domain, com.GetChildAt(9));
                m_passwordText   = (GTextInput)com.GetChildAt(10);
                m_Gro_LoginInfo  = (GGroup)com.GetChildAt(11);
                m_t0             = com.GetTransitionAt(0);
                m_t1             = com.GetTransitionAt(1);
            }
        }