Exemple #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;
            }
        }
Exemple #2
0
        public override void InitAction(TutorialController controller)
        {
            base.InitAction(controller);

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

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