Beispiel #1
0
    public void ChangeLevel(string levelName)
    {
        SceneManager.LoadScene(levelName);

        if (gameController == null)
        {
            gameController = Object.FindObjectOfType <KartGame.UI.MetaGameController>();
        }
        gameController.Restart();
    }
Beispiel #2
0
        public void resumeBtn()
        {
            MetaGameController ii = GameObject.Find("MetaGameController").GetComponent <MetaGameController>();

            ii.HandleMenuButton();
        }