public void OnClick() { SystemScript sc = GameObject.FindGameObjectWithTag("Player").GetComponent <SystemScript>(); sc.Quit(); }