Menu added
This commit is contained in:
11
3D/Assets/Scripts/MainMenu.cs
Normal file
11
3D/Assets/Scripts/MainMenu.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class MainMenu : MonoBehaviour
|
||||
{
|
||||
public void PlayGame() {
|
||||
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user