예제 #1
0
        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);
            }
        }
예제 #2
0
        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);
            }
        }