public void ChangeLevel(string levelName) { SceneManager.LoadScene(levelName); if (gameController == null) { gameController = Object.FindObjectOfType <KartGame.UI.MetaGameController>(); } gameController.Restart(); }
public void resumeBtn() { MetaGameController ii = GameObject.Find("MetaGameController").GetComponent <MetaGameController>(); ii.HandleMenuButton(); }