Exemplo n.º 1
0
    private void onGetBuyList(CEvent evt)
    {
        ShoppingEvent e = (ShoppingEvent)evt.eventParams;

        TinyBuyItemCS[] pp = ConvertTool.ConvertData <TinyBuyItemCS[]>(e.buyList);

        Debug.Log(JsonConvert.SerializeObject(pp));
        //  throw new NotImplementedException();
    }
Exemplo n.º 2
0
    private void onGetChargeList(CEvent evt)
    {
        ShoppingEvent e = (ShoppingEvent)evt.eventParams;

        var data = e.chargeList;

        TinyChargeCS[] pp = ConvertTool.ConvertData <TinyChargeCS[]>(e.chargeList);


        Debug.Log(JsonConvert.SerializeObject(pp));
    }
Exemplo n.º 3
0
    private void onGetLastChargeTime(CEvent evt)
    {
        ShoppingEvent e = (ShoppingEvent)evt.eventParams;

        var data = e.chargeList;


        //  TinyDrawOutCS[] pp = ConvertTool.ConvertData<TinyDrawOutCS[]>(e.chargeList);


        //   Debug.Log(JsonConvert.SerializeObject(pp));

        TinyChargeCS[] pp = ConvertTool.ConvertData <TinyChargeCS[]>(e.chargeList);


        if (pp.Length > 0)
        {
            Debug.Log("上次挖矿充值时间" + pp[0].op_time);
        }
    }