public void Initialize(WalkModeSwitcher walkModeSwitcher)
        {
            m_WalkModeSwitcher      = walkModeSwitcher;
            m_WalkModeInstructionUI = WalkModeInstructionUI.Init;

            m_States = new Dictionary <WalkModeInstructionUI, InstructionUIStep>
            {
                { WalkModeInstructionUI.Init, new InstructionUIStep {
                      stepIndex = (int)WalkModeInstructionUI.Init, onNext = StartInstruction
                  } },
                { WalkModeInstructionUI.Place, new InstructionUIStep {
                      stepIndex = (int)WalkModeInstructionUI.Place, onNext = FindTeleportLocation, onBack = StartInstruction
                  } },
                { WalkModeInstructionUI.Rotate, new InstructionUIStep {
                      stepIndex = (int)WalkModeInstructionUI.Rotate, onNext = ChooseRotation, onBack = FindTeleportLocation
                  } },
                { WalkModeInstructionUI.Complete, new InstructionUIStep {
                      stepIndex = (int)WalkModeInstructionUI.Complete, onNext = OnComplete, onBack = ChooseRotation
                  } },
            };
        }
Exemple #2
0
        public void Initialize(WalkModeSwitcher walkModeSwitcher)
        {
            m_WalkModeSwitcher      = walkModeSwitcher;
            m_WalkModeInstructionUI = WalkModeInstructionUI.Init;

            m_States = new Dictionary <WalkModeInstructionUI, SetARInstructionUIAction.InstructionUIStep>
            {
                { WalkModeInstructionUI.Init, new SetARInstructionUIAction.InstructionUIStep {
                      stepIndex = (int)WalkModeInstructionUI.Init, onNext = StartInstruction
                  } },
                { WalkModeInstructionUI.Place, new SetARInstructionUIAction.InstructionUIStep {
                      stepIndex = (int)WalkModeInstructionUI.Place, onNext = FindTeleportLocation, onBack = StartInstruction
                  } },
                { WalkModeInstructionUI.Rotate, new SetARInstructionUIAction.InstructionUIStep {
                      stepIndex = (int)WalkModeInstructionUI.Rotate, onNext = ChooseRotation, onBack = FindTeleportLocation
                  } },
                { WalkModeInstructionUI.Complete, new SetARInstructionUIAction.InstructionUIStep {
                      stepIndex = (int)WalkModeInstructionUI.Complete, onNext = OnComplete, onBack = ChooseRotation
                  } },
            };

            m_NavigationModeSelector = UISelectorFactory.createSelector <SetNavigationModeAction.NavigationMode>(NavigationContext.current, nameof(INavigationDataProvider.navigationMode));
        }