void Awake()
    {
        Time.timeScale = 1;
        gameManager    = this;

        LetterBoxer.AddLetterBoxingCamera();

        if (gameOver != null)
        {
            gameOverText = gameOver.GetComponent <Text>();
        }

        if (fadePanel != null)
        {
            fadeImage = fadePanel.GetComponent <Image>();
            fadePanel.SetActive(true);
        }

        if (levelTextPanel != null)
        {
            levelText = levelTextPanel.GetComponent <Text>();
        }

        if (player != null)
        {
            respawnPosition = player.transform.position;
        }
    }
Esempio n. 2
0
    void Awake()
    {
        manager = this;

        LetterBoxer.AddLetterBoxingCamera();

        Screen.sleepTimeout = SleepTimeout.NeverSleep;
    }