Esempio n. 1
0
    /// <summary>
    /// 购买支付返回
    /// </summary>
    /// <param name="msg"></param>
    private void OnGetPayBackInfo(MessageData msg)
    {
        GetRooMCardGlodsUpdate ack = msg.Read <GetRooMCardGlodsUpdate>();

        Global.Inst.GetController <CommonTipsController>().ShowTips("已为您放入仓库中", "前往", () => { mView.OnWareHouseClick(); }, null, null, "购买成功");
        //PlayerModel.Inst.UserInfo.gold = ack.glods;
        //PlayerModel.Inst.UserInfo.roomCard = ack.roomCard;
        //PlayerModel.Inst.UpdateRoomCardGlods(ack.roomCard, ack.glods);
    }
Esempio n. 2
0
    /// <summary>
    /// 更新房卡和金币
    /// </summary>
    /// <param name="msg"></param>
    public void OnGetRoomCardGlodsUpdate(MessageData msg)
    {
        GetRooMCardGlodsUpdate ack = msg.Read <GetRooMCardGlodsUpdate>();

        PlayerModel.Inst.UpdateRoomCardGlods(ack.roomCard, ack.glods);
    }