using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; /// /// This code is for the main menu, it just means that if the payer clicks on play game, load scene 1 which is the starting position, /// if the player clicks on quit game, quit the game. /// public class MainMenu : MonoBehaviour { public void PlayGame() { SceneManager.LoadSceneAsync(1); } private void QuitGame() { Application.Quit(); } }