Exemplo n.º 1
0
    public override void Execute(object data = null)
    {
        ShopArgs  e    = data as ShopArgs;
        UIShop    shop = GetView <UIShop>();
        GameModel gm   = GetModel <GameModel>();

        if (gm.GetMoney(e.coin))
        {
            gm.FootballInfoList[e.index].State = e.state;
            shop.UpdateUI();
        }
        else
        {
            shop.TipMessage("金币不足!");
        }
    }