diff options
Diffstat (limited to 'Assets/Scripts/LevelController.cs')
-rw-r--r-- | Assets/Scripts/LevelController.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Assets/Scripts/LevelController.cs b/Assets/Scripts/LevelController.cs index 456dafe..7c7355e 100644 --- a/Assets/Scripts/LevelController.cs +++ b/Assets/Scripts/LevelController.cs @@ -1,12 +1,18 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; +using UnityEngine.SceneManagement; public class LevelController : MonoBehaviour { [SerializeField] GameObject treasure; // Start is called before the first frame update + public void StartGame() + { + SceneManager.LoadScene("Jungle"); + } + public void ResetLevel() { Destroy(GameObject.Find("Boulder(Clone)")); |