public async ETVoid TestActor() { try { M2C_TestActorResponse response = (M2C_TestActorResponse)await SessionComponent.Instance.Session.Call( new C2M_TestActorRequest() { Info = "actor rpc request" }); Log.Info(response.Info); } catch (Exception e) { Log.Error(e); } }
public async void TestActor() { try { M2C_TestActorResponse response = (M2C_TestActorResponse)await Game.Scene.GetComponent <SessionWrapComponent>().Session.Call( new C2M_TestActorRequest() { Info = "actor rpc request" }); Log.Info(response.Info); } catch (Exception e) { Log.Error(e); } }