Exemplo n.º 1
0
 void Awake()
 {
     notifications               = GetComponent <NotificationController>();
     simpleTutorialHelper        = GetComponent <SimpleProcedureTutorialHelper>();
     intermediateTutorialHelper  = GetComponent <IntermediateProcedureTutorialHelper>();
     advancedTutorialHelper      = GetComponent <AdvancedProcedureTutorialHelper>();
     simpleTutorialHelper2       = GetComponent <SimpleProcedureTutorialHelper2>();
     intermediateTutorialHelper2 = GetComponent <IntermediateProcedureTutorialHelper2>();
     advancedTutorialHelper2     = GetComponent <AdvancedProcedureTutorialHelper2>();
     controlSound = GetComponent <AudioSource>();
 }
 public override void BeginProcedure(ProcedureController cont)
 {
     base.BeginProcedure(cont);
     tut      = controller.Controls.advancedTutorialHelper2;
     usermode = true;
     tutWait  = true;
     current  = 0;
     power    = 0;
     SetupSystems();
     ResetUI();
     ContextSwitched();
     controller.Controls.SubscribeToAllControls(Handler);
     tut.preamble.OnceSequenceFinished += PreambleFinished;
     curState = TutState.Preamble;
     tut.preamble.Begin();
 }