Пример #1
0
        public void UpdateStep(TutorialController controller)
        {
            if (!Initialized)
            {
                Debug.LogFormat("Tutorial Initializing state {0}", action.name);
                action.InitAction(controller);
                Initialized = true;
            }

            if (action.PlayAction())
            {
                if (nextStep != null)
                {
                    Debug.LogFormat("Tutorial Switching to state {0}", nextStep.name);
                }
                else
                {
                    Debug.LogFormat("Ending tutorial");
                }

                action.ExitAction();
                controller.ChangeStep(nextStep);
                Initialized = false;
            }
        }
Пример #2
0
        public override void InitAction(TutorialController controller)
        {
            base.InitAction(controller);

            itemPickedUp = false;
            controller.Object.GetComponent <ItemGameObject>().RegisterListener(this);
        }
Пример #3
0
 public override void InitAction(TutorialController controller)
 {
     base.InitAction(controller);
     ShowPanel("OpenInventory");
     PauseCharacter(true);
     _triggered = false;
 }
Пример #4
0
        public override void InitAction(TutorialController controller)
        {
            base.InitAction(controller);
            ShowPanel("GetHelp");
            PauseCharacter(true);
            _triggered = false;

            controller.HelpPanel.GetComponent <KeyboardHelpPanel>().RegisterListener(this);
        }
Пример #5
0
 public override void InitAction(TutorialController controller)
 {
     base.InitAction(controller);
     ShowPanel("MoveAround");
 }
Пример #6
0
 public override void InitAction(TutorialController controller)
 {
     base.InitAction(controller);
     PauseCharacter(true);
     ShowPanel("SelectObject");
 }
Пример #7
0
 public virtual void InitAction(TutorialController controller)
 {
     this.controller = controller;
 }
Пример #8
0
 public override void InitAction(TutorialController controller)
 {
     base.InitAction(controller);
     triggered = false;
 }