public override void Dispose() { if (IsDisposed) { return; } base.Dispose(); self.Remove(); self = null; n1 = null; n2 = null; shop = null; team = null; backpacket = null; achievemen = null; hero = null; prebattle = null; friend = null; watch = null; activity = null; Bottom = null; n23 = null; n37 = null; n44 = null; m_gemInfo = null; n40 = null; gem = null; n34 = null; n42 = null; m_goldenInfo = null; n41 = null; golden = null; n43 = null; n31 = null; m_pointInfo = null; n32 = null; point = null; mail = null; setting = null; RightTop = null; n48 = null; n51 = null; n61 = null; normalPVPBtn = null; nomalpvp = null; n49 = null; n53 = null; n62 = null; pveBtn = null; pve = null; n50 = null; n63 = null; n52 = null; SerPVPBtn = null; seriviouspvp = null; Right = null; UserAvatar = null; userName = null; UserLevel = null; n71 = null; LeftTop = null; }
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) { n1 = (GImage)com.GetChildAt(0); n2 = (GImage)com.GetChildAt(1); shop = BottomBtn.Create(com.GetChildAt(2)); team = BottomBtn.Create(com.GetChildAt(3)); backpacket = BottomBtn.Create(com.GetChildAt(4)); achievemen = BottomBtn.Create(com.GetChildAt(5)); hero = BottomBtn.Create(com.GetChildAt(6)); prebattle = BottomBtn.Create(com.GetChildAt(7)); friend = BottomBtn.Create(com.GetChildAt(8)); watch = BottomBtn.Create(com.GetChildAt(9)); activity = ActityHead.Create(com.GetChildAt(10)); Bottom = (GGroup)com.GetChildAt(11); n23 = (GImage)com.GetChildAt(12); n37 = (GImage)com.GetChildAt(13); n44 = (GImage)com.GetChildAt(14); m_gemInfo = (GTextField)com.GetChildAt(15); n40 = (GImage)com.GetChildAt(16); gem = (GGroup)com.GetChildAt(17); n34 = (GImage)com.GetChildAt(18); n42 = (GImage)com.GetChildAt(19); m_goldenInfo = (GTextField)com.GetChildAt(20); n41 = (GImage)com.GetChildAt(21); golden = (GGroup)com.GetChildAt(22); n43 = (GImage)com.GetChildAt(23); n31 = (GImage)com.GetChildAt(24); m_pointInfo = (GTextField)com.GetChildAt(25); n32 = (GImage)com.GetChildAt(26); point = (GGroup)com.GetChildAt(27); mail = (GImage)com.GetChildAt(28); setting = (GImage)com.GetChildAt(29); RightTop = (GGroup)com.GetChildAt(30); n48 = (GImage)com.GetChildAt(31); n51 = (GImage)com.GetChildAt(32); n61 = (GTextField)com.GetChildAt(33); normalPVPBtn = BattleBtn.Create(com.GetChildAt(34)); nomalpvp = (GGroup)com.GetChildAt(35); n49 = (GImage)com.GetChildAt(36); n53 = (GImage)com.GetChildAt(37); n62 = (GTextField)com.GetChildAt(38); pveBtn = BattleBtn.Create(com.GetChildAt(39)); pve = (GGroup)com.GetChildAt(40); n50 = (GImage)com.GetChildAt(41); n63 = (GTextField)com.GetChildAt(42); n52 = (GImage)com.GetChildAt(43); SerPVPBtn = BattleBtn.Create(com.GetChildAt(44)); seriviouspvp = (GGroup)com.GetChildAt(45); Right = (GGroup)com.GetChildAt(46); UserAvatar = (GImage)com.GetChildAt(47); userName = (GTextField)com.GetChildAt(48); UserLevel = (GTextField)com.GetChildAt(49); n71 = (GImage)com.GetChildAt(50); LeftTop = (GGroup)com.GetChildAt(51); } }