Ejemplo n.º 1
0
 public void Step4_Planet_Landing_Message()
 {
     if (!step4Writer3.HasAlreadyWritten() && TutorialStateManager.isStep4())
     {
         step4Writer3.Write(step4Sentence3);
         GameStateManager.BlockStarShipMovements();
     }
 }
Ejemplo n.º 2
0
 public void EndStep4()
 {
     TutorialStateManager.Step5();
     if (!step5Writer1.HasAlreadyWritten())
     {
         step5Writer1.Write(step5Sentence1);
     }
     GameStateManager.ShowVestaNavigationSystem();
 }
Ejemplo n.º 3
0
 public void Step3_Hook_Message()
 {
     if (!step3Writer2.HasAlreadyWritten() && TutorialStateManager.isStep3())
     {
         Starship.fuel = 0;
         step3Writer2.Write(step3Sentence2);
         GameStateManager.BlockStarShipMovements();
     }
 }
Ejemplo n.º 4
0
 public void Step2_Attract_Message()
 {
     if (!step2Writer2.HasAlreadyWritten() && TutorialStateManager.isStep2())
     {
         Starship.fuel = 100;
         step2Writer2.Write(step2Sentence2);
         GameStateManager.BlockStarShipMovements();
     }
 }
Ejemplo n.º 5
0
    void Update()
    {
        if (GameStateManager.isStartGame())
        {
            startGameObjects.SetActive(true);
            midGameObjects.SetActive(false);
        }

        if (GameStateManager.isMidGame())
        {
            mainNavigationSystem.SetTarget(Mars);
            midGameObjects.SetActive(true);
            startGameObjects.SetActive(false);
        }

        if (GameStateManager.isInGame() && !GameStateManager.isTutorial())
        {
            GameStateManager.AllowStarShipHook();
            GameStateManager.ShowPlanetNavigationSystem();
            GameStateManager.ShowFuelNavigationSystem();
            GameStateManager.ShowVestaNavigationSystem();

            if (!comunicationsWriter.HasAlreadyWritten() && !GameStateManager.isCheckpoint())
            {
                comunicationsWriter.Write(sentence0_1);
            }

            // Liftoff
            if (!gameStarted && Input.GetAxis("Vertical") > 0)
            {
                gameStarted = true;
                GameStateManager.AllowStarShipMovements();
                GameStateManager.ShowHUD();
                if (!GameStateManager.isCheckpoint())
                {
                    comunicationsWriter.Write(sentence0_2);
                }
            }

            // end extreme danger message
            if (extremeDangerAudio.isPlaying && !EnemiesManager.isExtremeDanger())
            {
                if (!extremeDangerEndWriter.HasAlreadyWritten())
                {
                    extremeDangerEndWriter.Write(sentence_extreme_danger_end);
                }
            }
        }
    }