2023-06-08 23:39:07 +02:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
using UnityEngine.SceneManagement;
|
|
|
|
|
|
|
|
public class MainMenu : MonoBehaviour
|
|
|
|
{
|
|
|
|
public void startGame()
|
|
|
|
{
|
|
|
|
Debug.Log("Main Menu: New Game");
|
2023-06-22 21:20:53 +02:00
|
|
|
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex+1);
|
2023-06-08 23:39:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public void endGame()
|
|
|
|
{
|
|
|
|
Debug.Log("Main Menu: Quit Game");
|
|
|
|
Application.Quit();
|
|
|
|
}
|
|
|
|
}
|