예제 #1
0
    IEnumerator coRankingList(RankingListRequest request, RPCHandler <RankingListReply> handler)
    {
        //try
        //{
        //    var metaData = new Metadata
        //    {
        //        { "access_key", GameDataManager.Instance.userData.accessKey }
        //    };

        //    var reply = client.RankingList(request, metaData);

        //    handler(reply);
        //}
        //catch (Grpc.Core.RpcException e)
        //{
        //    Debug.LogError("RPC failed " + e);
        //}

        yield return(null);
    }
예제 #2
0
 // RankingList
 public void RankingList(RankingListRequest request, RPCHandler <RankingListReply> handler)
 {
     StartCoroutine(coRankingList(request, handler));
 }