I'm using .net client, C# code
To call a service on the server (i.e. GetLiveRoomInfo) , the client has to do following steps
- On the UI button click event, call WarpClient.GetInstance().GetLiveRoomInfo
- Wait for onGetLiveRoomInfoDone event callback
- Update the UI data from the callback using Invoke
That's seem too much overhead code if you make multiple different calls to the server
Is it possible to wrap all the call in a single method call, something like this
UI_OnButton_click ()
{
await WarpClient.GetInstance().GetLiveRoomInfo
Update more UI data here ...
}
Thanks.