mirror of
https://github.com/boudji-ludwig-pett/cnam-geometry-dash.git
synced 2025-06-10 22:20:40 +02:00
feat: edit a level (#64)
This commit is contained in:
@ -5,6 +5,8 @@ public class LevelHomeButton : MonoBehaviour
|
||||
{
|
||||
public void GoToHome()
|
||||
{
|
||||
PlayerPrefs.SetInt("CreateMode", 0);
|
||||
PlayerPrefs.SetInt("EditMode", 0);
|
||||
SceneManager.LoadScene("HomeScene");
|
||||
}
|
||||
}
|
||||
|
@ -7,4 +7,9 @@ public class LevelNameButton : MonoBehaviour
|
||||
{
|
||||
SceneManager.LoadScene("LevelScene");
|
||||
}
|
||||
public void EditLevel()
|
||||
{
|
||||
PlayerPrefs.SetInt("CreateMode", 0);
|
||||
SceneManager.LoadScene("LevelEditorScene");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user