// Use this for initialization
 void Start()
 {
     _sceneManager = transform.root.GetComponent<SceneManager>();
     _soundManager = _sceneManager.GetComponent<SoundManager>();
 }
Exemple #2
0
 private void onButtonClick()
 {
     SceneManager.LoadScene("Menu");
 }