using System; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace ET.Client { [FriendOf(typeof(UIMainComponent))] public static class UIMainComponentSystem { [ObjectSystem] public class UIMainComponentAwakeSystem : AwakeSystem { protected override async void Awake(UIMainComponent self, params object[] param) { ReferenceCollector rc = self.GetParent().GameObject.GetComponent(); self.createRoomBtn = rc.Get("createRoomBtn"); self.createRoomTxt = rc.Get("createRoomTxt"); self.joinRoomBtn = rc.Get("joinRoomBtn"); self.clubRoomBtn = rc.Get("clubBtn"); self.playerIcon = rc.Get("playerIcon"); self.playerId = rc.Get("playerId"); self.playerName = rc.Get("playerName"); self.playerLevel = rc.Get("playerLevel"); self.vipVaule = rc.Get("vipVaule"); self.expVaule = rc.Get("expVaule"); self.createRoomBtn.OnClick(() => { self.OnCreateRoom(); }); //self.createRoomBtn.GetComponent