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; } }
void Awake() { manager = this; LetterBoxer.AddLetterBoxingCamera(); Screen.sleepTimeout = SleepTimeout.NeverSleep; }