Esempio n. 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)
            {
                bg            = (GImage)com.GetChild("bg");
                contentBG     = (GImage)com.GetChild("contentBG");
                accountBg     = (GImage)com.GetChild("accountBg");
                accountInput  = (GTextInput)com.GetChild("accountInput");
                passwordBg    = (GImage)com.GetChild("passwordBg");
                passwordInput = (GTextInput)com.GetChild("passwordInput");
                loginButton   = FGUITitleButton.Create(domain, com.GetChild("loginButton"));
                registButton  = FGUITitleButton.Create(domain, com.GetChild("registButton"));
                content       = (GGroup)com.GetChild("content");
            }
        }
Esempio 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)
            {
                bg          = (GImage)com.GetChild("bg");
                enterButton = FGUITitleButton.Create(domain, com.GetChild("enterButton"));
            }
        }
Esempio n. 3
0
        public override void Dispose()
        {
            if (IsDisposed)
            {
                return;
            }

            base.Dispose();

            self.Remove();
            self = null;
            bg   = null;
            enterButton.Dispose();
            enterButton = null;
        }
Esempio n. 4
0
        public override void Dispose()
        {
            if (IsDisposed)
            {
                return;
            }

            base.Dispose();

            self.Remove();
            self          = null;
            bg            = null;
            contentBG     = null;
            accountBg     = null;
            accountInput  = null;
            passwordBg    = null;
            passwordInput = null;
            loginButton.Dispose();
            loginButton = null;
            registButton.Dispose();
            registButton = null;
            content      = null;
        }