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

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

            ii.HandleMenuButton();
        }