示例#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)
            {
                n0          = (GImage)com.GetChildAt(0);
                Tittle      = (GTextField)com.GetChildAt(1);
                Conten      = (GTextField)com.GetChildAt(2);
                tow_cancel  = tow_cancel.Create(com.GetChildAt(3));
                tow_confirm = one_confirm.Create(com.GetChildAt(4));
                towmode     = (GGroup)com.GetChildAt(5);
                one_confirm = one_confirm.Create(com.GetChildAt(6));
                onemode     = (GGroup)com.GetChildAt(7);
            }
        }
示例#2
0
        public override void Dispose()
        {
            if (IsDisposed)
            {
                return;
            }

            base.Dispose();

            self.Remove();
            self = null;

            n0          = null;
            Tittle      = null;
            Conten      = null;
            tow_cancel  = null;
            tow_confirm = null;
            towmode     = null;
            one_confirm = null;
            onemode     = null;
        }