示例#1
0
        public Task <ChangeSceneResponseParameters> ChangeScene(IYield yield, ChangeSceneRequestParameters parameters)
        {
            var id = parameters.PortalId;
            var portalContainer = Components.GetComponent <IPortalContainer>().AssertNotNull();
            var map             = portalContainer.GetMap(id);

            return(Task.FromResult(new ChangeSceneResponseParameters(map)));
        }
示例#2
0
 public async Task <ChangeSceneResponseParameters> ChangeScene(IYield yield, ChangeSceneRequestParameters parameters)
 {
     return(await ServerPeerHandler.SendOperation <ChangeSceneRequestParameters, ChangeSceneResponseParameters>
                (yield, (byte)GameOperations.ChangeScene, parameters, MessageSendOptions.DefaultReliable()));
 }