Beispiel #1
0
        public override void Dispose()
        {
            if (IsDisposed)
            {
                return;
            }

            base.Dispose();

            self.Remove();
            self = null;

            m_n1 = null;
            m_n2 = null;
            m_shop.Dispose();
            m_shop = null;
            m_team.Dispose();
            m_team = null;
            m_backpacket.Dispose();
            m_backpacket = null;
            m_achievemen.Dispose();
            m_achievemen = null;
            m_hero.Dispose();
            m_hero = null;
            m_prebattle.Dispose();
            m_prebattle = null;
            m_friend.Dispose();
            m_friend = null;
            m_watch.Dispose();
            m_watch = null;
            m_activity.Dispose();
            m_activity     = null;
            m_Bottom       = null;
            m_n23          = null;
            m_n37          = null;
            m_n44          = null;
            m_m_gemInfo    = null;
            m_n40          = null;
            m_gem          = null;
            m_n34          = null;
            m_n42          = null;
            m_m_goldenInfo = null;
            m_n41          = null;
            m_golden       = null;
            m_n43          = null;
            m_n31          = null;
            m_m_pointInfo  = null;
            m_n32          = null;
            m_point        = null;
            m_mail         = null;
            m_setting      = null;
            m_RightTop     = null;
            m_n48          = null;
            m_n51          = null;
            m_n61          = null;
            m_normalPVPBtn.Dispose();
            m_normalPVPBtn = null;
            m_nomalpvp     = null;
            m_n49          = null;
            m_n53          = null;
            m_n62          = null;
            m_pveBtn.Dispose();
            m_pveBtn = null;
            m_pve    = null;
            m_n50    = null;
            m_n63    = null;
            m_n52    = null;
            m_SerPVPBtn.Dispose();
            m_SerPVPBtn    = null;
            m_seriviouspvp = null;
            m_Right        = null;
            m_UserAvatar   = null;
            m_userName     = null;
            m_UserLevel    = null;
            m_n71          = null;
            m_LeftTop      = null;
        }
Beispiel #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)
            {
                m_n1           = (GImage)com.GetChildAt(0);
                m_n2           = (GImage)com.GetChildAt(1);
                m_shop         = FUI_BottomBtn.Create(domain, com.GetChildAt(2));
                m_team         = FUI_BottomBtn.Create(domain, com.GetChildAt(3));
                m_backpacket   = FUI_BottomBtn.Create(domain, com.GetChildAt(4));
                m_achievemen   = FUI_BottomBtn.Create(domain, com.GetChildAt(5));
                m_hero         = FUI_BottomBtn.Create(domain, com.GetChildAt(6));
                m_prebattle    = FUI_BottomBtn.Create(domain, com.GetChildAt(7));
                m_friend       = FUI_BottomBtn.Create(domain, com.GetChildAt(8));
                m_watch        = FUI_BottomBtn.Create(domain, com.GetChildAt(9));
                m_activity     = FUI_ActityHead.Create(domain, com.GetChildAt(10));
                m_Bottom       = (GGroup)com.GetChildAt(11);
                m_n23          = (GImage)com.GetChildAt(12);
                m_n37          = (GImage)com.GetChildAt(13);
                m_n44          = (GImage)com.GetChildAt(14);
                m_m_gemInfo    = (GTextField)com.GetChildAt(15);
                m_n40          = (GImage)com.GetChildAt(16);
                m_gem          = (GGroup)com.GetChildAt(17);
                m_n34          = (GImage)com.GetChildAt(18);
                m_n42          = (GImage)com.GetChildAt(19);
                m_m_goldenInfo = (GTextField)com.GetChildAt(20);
                m_n41          = (GImage)com.GetChildAt(21);
                m_golden       = (GGroup)com.GetChildAt(22);
                m_n43          = (GImage)com.GetChildAt(23);
                m_n31          = (GImage)com.GetChildAt(24);
                m_m_pointInfo  = (GTextField)com.GetChildAt(25);
                m_n32          = (GImage)com.GetChildAt(26);
                m_point        = (GGroup)com.GetChildAt(27);
                m_mail         = (GImage)com.GetChildAt(28);
                m_setting      = (GImage)com.GetChildAt(29);
                m_RightTop     = (GGroup)com.GetChildAt(30);
                m_n48          = (GImage)com.GetChildAt(31);
                m_n51          = (GImage)com.GetChildAt(32);
                m_n61          = (GTextField)com.GetChildAt(33);
                m_normalPVPBtn = FUI_BattleBtn.Create(domain, com.GetChildAt(34));
                m_nomalpvp     = (GGroup)com.GetChildAt(35);
                m_n49          = (GImage)com.GetChildAt(36);
                m_n53          = (GImage)com.GetChildAt(37);
                m_n62          = (GTextField)com.GetChildAt(38);
                m_pveBtn       = FUI_BattleBtn.Create(domain, com.GetChildAt(39));
                m_pve          = (GGroup)com.GetChildAt(40);
                m_n50          = (GImage)com.GetChildAt(41);
                m_n63          = (GTextField)com.GetChildAt(42);
                m_n52          = (GImage)com.GetChildAt(43);
                m_SerPVPBtn    = FUI_BattleBtn.Create(domain, com.GetChildAt(44));
                m_seriviouspvp = (GGroup)com.GetChildAt(45);
                m_Right        = (GGroup)com.GetChildAt(46);
                m_UserAvatar   = (GImage)com.GetChildAt(47);
                m_userName     = (GTextField)com.GetChildAt(48);
                m_UserLevel    = (GTextField)com.GetChildAt(49);
                m_n71          = (GImage)com.GetChildAt(50);
                m_LeftTop      = (GGroup)com.GetChildAt(51);
            }
        }