private void Awake() { FindTextObjects(); winDisplayPanel = new TransitionUtility.Panel( this.gameObject, gameOverTransitionDuration); winDisplayPanel.MakeTransparent(); }
private void Start() { if (winDisplay != null) { GameManager.instance.OnGameOver += () => { this.RealtimeDelayCall(winDisplay.GameOverFunction, pauseBeforeWinDisplay); }; } if (pauseMenu != null) { pauseMenuPanel = new TransitionUtility.Panel( pauseMenu, pauseTransitionDuration); } }