void OnMouseDown() { if (paused == true) { script.ContinueGame(); pauseText.text = "Pause"; paused = false; return; } if (paused == false) { script.PauseGame(); pauseText.text = "Resume"; paused = true; return; } }
void OnMouseDown() { script.ContinueGame(); Destroy(GameObject.FindWithTag("pauseCanvas")); }