public void resumeClick() { if (!gameControl.pauseGame()) { panelBG.SetActive(false); } }
public void pauseClick() { if (gameControl.pauseGame()) { this.GetComponent <Image> ().sprite = imgPause; textPause.text = "resume"; Debug.Log("pause"); } else { this.GetComponent <Image> ().sprite = imgResume; textPause.text = "pause"; Debug.Log("resume"); } }