Esempio n. 1
0
 private void Inject(
     ISceneTransitionService sceneTransitionService,
     IPlayerStatsModel playerStatsModel)
 {
     _sceneTransitionService = sceneTransitionService;
     _playerStatsModel       = playerStatsModel;
 }
        /// <summary>
        /// Load a scene with contentScene.Name
        /// </summary>
        public void LoadContent()
        {
            ISceneTransitionService transitions = MixedRealityToolkit.Instance.GetService <ISceneTransitionService>();

            if (transitions.TransitionInProgress)
            {
                return;
            }
            transitions.DoSceneTransition(() => CoreServices.SceneSystem.LoadContent(contentScene.Name, loadSceneMode));
        }
    public void LoadContent()
    {
        if (CoreServices.SceneSystem.SceneOperationInProgress)
        {
            return;
        }

        ISceneTransitionService transitions = MixedRealityToolkit.Instance.GetService <ISceneTransitionService>();

        transitions.DoSceneTransition(
            () => CoreServices.SceneSystem.LoadContent(contentName, loadSceneMode),
            () => SurfacePlacement.Instance.PlaceNewSurface());
    }
Esempio n. 4
0
 private void Inject(
     ISceneTransitionService sceneTransitionService)
 {
     _sceneTransitionService = sceneTransitionService;
 }