//If this is the first and only controller, the following runtime assignments are made. void OnEnable() { CurrentDifficulty = difficulty; GetGameController = this.gameObject.GetComponent <ControllerGame> (); ControllerUI.InitializeUI(uiMainMenu, uiLevel, uiPause, uiDeath, uiVictory); SceneManager.sceneLoaded += OnSceneLoaded; InitializeAudio(); }