public void OnClick() { se.ButtonPush(); Debug.Log("Clicked"); gm.sceneChange = true; switch (myText) { case "Start": gm.scene = GameManager.GameScene.HOWTOPLAY; break; case "Exit": UnityEngine.Application.Quit(); break; case "GameStart": gm.scene = GameManager.GameScene.GAME; gm.InitGame(); break; case "Return": gm.scene = GameManager.GameScene.TITLE; break; case "Retry": gm.scene = GameManager.GameScene.GAME; gm.terminateGame(); gm.InitGame(); break; case "Title": gm.terminateGame(); gm.scene = GameManager.GameScene.TITLE; break; } }