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); }
// RankingList public void RankingList(RankingListRequest request, RPCHandler <RankingListReply> handler) { StartCoroutine(coRankingList(request, handler)); }