start work on microgames

This commit is contained in:
myondev 2026-09-03 08:59:35 -07:00
parent ef733054ef
commit ecff3c6b69
6 changed files with 105 additions and 0 deletions

View file

@ -21,6 +21,7 @@ public class LevelSwitcher : MonoBehaviour
#endregion
[SerializeField] private int mapSceneIndex;
[SerializeField] private int microGameSceneIndex;
public void LoadMap(Map requestedMap, int exitIndex)
{
SceneManager.LoadScene(mapSceneIndex);
@ -34,4 +35,13 @@ public class LevelSwitcher : MonoBehaviour
{
SceneManager.LoadScene(sceneIndex);
}
public void LoadMicroGame(MicroGameHandler gameToLoad)
{
SceneManager.LoadScene(microGameSceneIndex);
Instantiate(gameToLoad);
//instantiate the handler
//go from there
}
}