Example #1
0
        public async ETVoid RunAsync()
        {
            FUIComponent fuiComponent = Game.Scene.GetComponent <FUIComponent>();

            if (fuiComponent.Get(FUIType.GM) != null)
            {
                return;
            }
            FUI ui = await FUIGMFactory.Create();

            fuiComponent.Add(ui);
        }
        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);
            }
        }