Ejemplo n.º 1
0
 public void DePause()
 {
     bulletSpin.enabled = true;
     terrainSpeed       = 80.0f;
     trail.Play();
     if (tutorialMode)
     {
         Time.timeScale = timeScale;
     }
     else
     {
         playerMov.enabled = true;
         spawn.Begin();
     }
 }
Ejemplo n.º 2
0
    void Update()
    {
        switch (stage)
        {
        case TutorialStage.Waiting:
            break;

        case TutorialStage.SetUp:
            CreateTutorialCollider();
            playerMov.enabled = false;
            Time.timeScale    = 0.1f;
            StageChange();
            break;

        case TutorialStage.FirstPhase:
            FirstPhase();
            StageChange();
            break;

        case TutorialStage.SetupMarkers:
            if (DPadShiner.DoneShining())
            {
                Time.timeScale = 1.0f;
                setUpMarkers();
                StageChange();
            }
            break;

        case TutorialStage.WaitForMakers:
            if (CheckMarkersDoneMoving())
            {
                StageChange();
            }
            break;

        case TutorialStage.ShowArrows:
            ShowArrows();
            StageChange();
            break;

        case TutorialStage.ArrowsGone:
            if (CheckArrowsGone())
            {
                ShowText();
                StageChange();
            }
            break;

        case TutorialStage.TextGone:
            if (CheckTextGone())
            {
                playerMov.enabled = true;
                StageChange();
            }
            break;

        case TutorialStage.MarkersCheck:
            if (AllMarkersTouched())
            {
                SoundManager.Instance.Tutorial2();
                DestroyMarkers();
                StageChange();
                spawner.Begin();
            }
            break;

        case TutorialStage.SecondPhase:
            break;

        case TutorialStage.EnemyHit:
            if (TutorialEnemyHit())
            {
                SoundManager.Instance.Tutorial3();
                StageChange();
            }
            break;

        case TutorialStage.ThirdPhase:
            break;

        case TutorialStage.NoObstacleHit:
            if (noObstaclesHit)
            {
                SoundManager.Instance.Tutorial4();
                StageChange();
            }
            break;

        case TutorialStage.PatternEnd:
            MenuManager.Instance.FinalCountdown();
            GameManager.Instance.EndTutorial();
            StageChange();
            break;

        case TutorialStage.TutorialEnd:
            spawner.EndTutorial();
            CleanUp();
            break;
        }
    }