mirror of
https://github.com/boudji-ludwig-pett/cnam-geometry-dash.git
synced 2025-12-11 00:27:48 +01:00
feat: add menu scene + select level scene + nav between them (#31)
This commit is contained in:
20
Assets/MainMenu.cs
Normal file
20
Assets/MainMenu.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class MainMenu : MonoBehaviour
|
||||
{
|
||||
public void LaunchGame()
|
||||
{
|
||||
SceneManager.LoadSceneAsync(1);
|
||||
}
|
||||
|
||||
public void OpenSettings()
|
||||
{
|
||||
// SceneManager.LoadSceneAsync(?);
|
||||
}
|
||||
|
||||
public void QuitGame()
|
||||
{
|
||||
Application.Quit();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user