Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        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));
        }
Esempio n. 3
0
        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); });
        }
Esempio n. 4
0
        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));
        }
Esempio n. 5
0
        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;
        }
Esempio n. 6
0
        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);
            }
        }
Esempio n. 7
0
 public FUI Get(string name)
 {
     return(Root?.Get(name));
 }