Пример #1
0
    void Update()
    {
        TutDialog pop = GetComponent <TutDialog>();

        if (tutStart == true)
        {
            pop.PopUp(popUp);
            tutStart = false;
        }

        if (Time.time >= 3f && Time.time <= 3.1)
        {
            if (controls == true)
            {
                Debug.Log("Controls");
                pop.PopUp1(popUp1);

                controls = false;
            }
        }

        else if (coinManager.coins >= 1)
        {
            if (firstCoin == true)
            {
                pop.PopUp3(popUp3);
                firstCoin = false;
            }
        }


        else if (comboManager.combo >= 2)
        {
            if (firstCombo == true)
            {
                pop.PopUp2(popUp2);
                firstCombo = false;
            }
        }

        if (playerState.currentState == PlayerStateManager.PlayerState.Primed && firstTrick == true)
        {
            pop.TricksText(tricksText);
            firstTrick = false;
        }

        else if (playerState.currentState == PlayerStateManager.PlayerState.Grinding && firstGrind == true)
        {
            pop.GrindText(grindText);
            firstGrind = false;
        }

        else if (Time.time >= 60f)
        {
            Debug.Log("Win");
            pop.WinText(winText);
        }
    }
Пример #2
0
    private void Start()
    {
        Scene scene = SceneManager.GetActiveScene();

        if (scene.name == TutorialScene)
        {
            tutDialog      = FindObjectOfType <TutDialog>();
            tutorialActive = true;
        }

        pauseMenu = FindObjectOfType <PauseMenu>();
    }