mirror of
https://github.com/boudji-ludwig-pett/cnam-geometry-dash.git
synced 2025-05-18 12:02:58 +02:00
42 lines
807 B
C#
42 lines
807 B
C#
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
public class MainMenu : MonoBehaviour
|
|
{
|
|
public void LaunchGame()
|
|
{
|
|
SceneManager.LoadSceneAsync("SelectLevelScene");
|
|
}
|
|
|
|
public void OpenImport()
|
|
{
|
|
SceneManager.LoadSceneAsync("ImportScene");
|
|
}
|
|
|
|
public void QuitGame()
|
|
{
|
|
Application.Quit();
|
|
}
|
|
|
|
public void LevelEditor()
|
|
{
|
|
SceneManager.LoadSceneAsync("LevelEditorScene");
|
|
}
|
|
|
|
public void CreateVoidLevel()
|
|
{
|
|
PlayerPrefs.SetInt("CreateMode", 1);
|
|
SceneManager.LoadScene("LevelEditorScene");
|
|
}
|
|
|
|
public void EditorChoice()
|
|
{
|
|
SceneManager.LoadSceneAsync("EditorChoiceScene");
|
|
}
|
|
|
|
public void EditLevel()
|
|
{
|
|
SceneManager.LoadSceneAsync("SelectLevelToEditScene");
|
|
}
|
|
}
|