// Update is called once per frame void Update() { if (GJ_InputManager.PressedInteract()) { GJ_DialogManager.ShowDialog(interactMsg); } if (Input.GetKeyDown(KeyCode.Escape)) { GJ_SceneLoader.LoadScene(GJ_SceneSetup.SCENES.MAIN_MENU); } }
/// <summary> /// Start a new Game from button /// </summary> public void NewGame() { GJ_EventManager.TriggerEvent(GJ_EventSetup.SaveData.NEW_GAME); GJ_SceneLoader.LoadScene(GJ_SceneSetup.SCENES.MANU_TEST, 1f, GJ_EventSetup.Menu.GO_TO_GAME); FungusManager.Instance.MusicManager.StopMusic(); }
public void BackToMenu() { Destroy(UnityEngine.Camera.main.gameObject); GJ_SceneLoader.LoadScene(GJ_SceneSetup.SCENES.MAIN_MENU); }
// Use this for initialization void Start() { // load menu //GJ_SceneLoader.LoadScene(GJ_SceneSetup.SCENES.MAIN_MENU, 1f, GJ_EventSetup.Menu.GO_TO_MAIN_MENU); GJ_SceneLoader.LoadScene(GJ_SceneSetup.SCENES.MAIN_MENU); }