feat: edit a level (#64)

This commit is contained in:
M VINCENT PETT
2025-05-16 13:19:44 +02:00
committed by GitHub
parent f818a9a8a7
commit bdd238f524
13 changed files with 1551 additions and 33 deletions

View File

@ -5,6 +5,8 @@ public class LevelHomeButton : MonoBehaviour
{
public void GoToHome()
{
PlayerPrefs.SetInt("CreateMode", 0);
PlayerPrefs.SetInt("EditMode", 0);
SceneManager.LoadScene("HomeScene");
}
}

View File

@ -7,4 +7,9 @@ public class LevelNameButton : MonoBehaviour
{
SceneManager.LoadScene("LevelScene");
}
public void EditLevel()
{
PlayerPrefs.SetInt("CreateMode", 0);
SceneManager.LoadScene("LevelEditorScene");
}
}