Ejemplo n.º 1
0
        public override void Dispose()
        {
            if (IsDisposed)
            {
                return;
            }

            base.Dispose();

            self.Remove();
            self = null;

            Gro_ShowVersionInfo = null;
            n0                     = null;
            n9                     = null;
            n10                    = null;
            Btn_Login              = null;
            Btn_Registe            = null;
            accountInput           = null;
            passwordInput          = null;
            accountText            = null;
            Tex_LoginInfo          = null;
            ToTestSceneBtn         = null;
            passwordText           = null;
            Gro_LoginInfo          = null;
            Gros_Detail_BackGround = null;
            n26                    = null;
            Gro_Detail             = null;
            Btn_VersionInfo        = null;
            Gro_VersionInfo        = null;
            t0                     = null;
            t1                     = null;
            Anim_VersionHide       = null;
            Anim_VersionShow       = null;
        }
Ejemplo n.º 2
0
        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)
            {
                Gro_ShowVersionInfo = com.GetControllerAt(0);
                n0                     = (GImage)com.GetChildAt(0);
                n9                     = (GImage)com.GetChildAt(1);
                n10                    = (GTextField)com.GetChildAt(2);
                Btn_Login              = Btn_Login.Create(com.GetChildAt(3));
                Btn_Registe            = Btn_Registe.Create(com.GetChildAt(4));
                accountInput           = (GImage)com.GetChildAt(5);
                passwordInput          = (GImage)com.GetChildAt(6);
                accountText            = (GTextInput)com.GetChildAt(7);
                Tex_LoginInfo          = (GTextField)com.GetChildAt(8);
                ToTestSceneBtn         = Btn_ToTestScene.Create(com.GetChildAt(9));
                passwordText           = (GTextInput)com.GetChildAt(10);
                Gro_LoginInfo          = (GGroup)com.GetChildAt(11);
                Gros_Detail_BackGround = (GImage)com.GetChildAt(12);
                n26                    = (GTextField)com.GetChildAt(13);
                Gro_Detail             = (GGroup)com.GetChildAt(14);
                Btn_VersionInfo        = Btn_VersionInfo.Create(com.GetChildAt(15));
                Gro_VersionInfo        = (GGroup)com.GetChildAt(16);
                t0                     = com.GetTransitionAt(0);
                t1                     = com.GetTransitionAt(1);
                Anim_VersionHide       = com.GetTransitionAt(2);
                Anim_VersionShow       = com.GetTransitionAt(3);
            }
        }