18 lines
376 B
C#
18 lines
376 B
C#
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
public class MainMenu : MonoBehaviour
|
|
{
|
|
public void StartGame()
|
|
{
|
|
Debug.Log("Start Game");
|
|
// Load the first scene (assuming it's named "GameScene")
|
|
SceneManager.LoadScene("Beach");
|
|
}
|
|
|
|
public void QuitGame()
|
|
{
|
|
Debug.Log("Quit Game");
|
|
Application.Quit();
|
|
}
|
|
} |