start work on microgames
This commit is contained in:
parent
ef733054ef
commit
ecff3c6b69
6 changed files with 105 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue