Example #1
0
 void Start()
 {
     sceneManagement = FindObjectOfType <SceneManagement>();
     button          = GetComponent <Button>();
     button.onClick.AddListener(delegate { sceneManagement.Exit(); });
 }