Added first steps to load mechanic, v1.3.0
This commit is contained in:
@@ -17,6 +17,7 @@ namespace Assets.Scripts.Menu
|
||||
uihandler = GameObject.Find("UIHandler").GetComponent<UIHandlerMenu>();
|
||||
audioHandler = GameObject.Find("AudioHandler").GetComponent<AudioHandler>();
|
||||
sceneHandler = GameObject.Find("SceneHandlerLoaded").GetComponent<SceneHandler>();
|
||||
GameObject.Find("btnLoad").SetActive(FileHandler.hasSaveFile());
|
||||
}
|
||||
|
||||
public void startGame()
|
||||
@@ -66,5 +67,11 @@ namespace Assets.Scripts.Menu
|
||||
audioHandler.saveAudioSettings();
|
||||
uihandler.closeOptions();
|
||||
}
|
||||
|
||||
public void loadGame()
|
||||
{
|
||||
audioHandler.playButtonClick();
|
||||
uihandler.loadGame(sceneHandler);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user