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