示例#1
0
    private IEnumerator OnReceiveCoinList(WWW req)
    {
        yield return(req);

        CoinListResponse resp = CoinListResponse.FromJson(req.text);

        foreach (Datum d in resp.Data.Values)
        {
            CoinManager.AddCoin(d);
        }
        FindObjectOfType <PortfolioScene>().Init();
    }
示例#2
0
    private IEnumerator OnReceiveCoinList(WWW req)
    {
        yield return(req);

        CoinListResponse resp = CoinListResponse.FromJson(req.text);

        foreach (Datum d in resp.Data.Values)
        {
            AddCoin(d);
        }

        CoinListBuilt();
    }