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