public override void Awake(FUILobbyComponent self) { FUI lobby = self.GetParent <FUI>(); lobby.Get("EnterMapBtn").GObject.asButton.onClick.Add(() => EnterMapBtnOnClick(self)); lobby.Get("ShopBtn").GObject.asButton.onClick.Add(() => ShopBtnOnClick(self)); }
public override void Awake(FUILoginComponent self) { FUI login = self.GetParent <FUI>(); self.AccountInput = login.Get("AccountInput"); login.Get("LoginBtn").GObject.asButton.onClick.Add(() => LoginBtnOnClick(self)); }
public override void Awake(FUIGMComponent self) { FUI FGUICompunt = self.GetParent <FUI>(); self.Input = FGUICompunt.Get("Input"); self.Execute = FGUICompunt.Get("Execute"); self.Execute.GObject.asButton.onClick.Set(() => { ExecuteOnClick(self); }); }
public override void Awake(FUIChessStoreComponent self) { FUI fUI = self.GetParent <FUI>(); self.GoldText = fUI.Get("GoldText"); fUI.Get("RefreshBtn").GObject.asButton.onClick.Add(() => OnRefresh(self)); fUI.Get("UplevelBtn").GObject.asButton.onClick.Add(() => OnAddExp(self)); fUI.Get("SellBtn").GObject.asButton.onClick.Add(() => OnSell(self)); }
public override void Awake(FUIMainItfComponent self) { FUI FGUICompunt = self.GetParent <FUI>(); self.m_point = FGUICompunt.Get("point"); self.m_BoomPoint = FGUICompunt.Get("BoomPoint"); self.m_HP = FGUICompunt.Get("hp"); TurretComponent.UpdatePos += self.UpdateBoomPoint; Tank.m_hpChange += self.HpChange; }
public void Run(long id, int value) { ChesserComponent ChesserComponent = ETModel.Game.Scene.GetComponent <ChesserComponent>(); if (ChesserComponent.MyChesser.Id == id) //本人金币变化 { FUIComponent fUIComponent = Game.Scene.GetComponent <FUIComponent>(); FUI ui = fUIComponent.Get(FUIType.UIChessStore); FUI goldText = ui.GetComponent <FUIChessStoreComponent>().GoldText; goldText.Get("gold").GObject.asLabel.text = string.Format("%d", value); } }
public FUI Get(string name) { return(Root?.Get(name)); }