using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class MainMenu : MonoBehaviour { public void startGame() //loading the game scene from the start button { SceneManager.LoadScene("Game"); } public void stopGame() //stopping the game from the stop button { Application.Quit(); } public void StartScreen() //loading the menu scene { SceneManager.LoadScene("Menu"); } }