Example #1
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);
            }
        }
Example #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)
            {
                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);
                n16            = (GGroup)com.GetChildAt(11);
                t0             = com.GetTransitionAt(0);
                t1             = com.GetTransitionAt(1);
            }
        }