public void ConfirmarDefinitivo(string primeiracena) { GameInformation.loadingSave = false; SaveInformation.SaveAll(); SceneManager.LoadScene(primeiracena); }
// Update is called once per frame void Update() { if (hudHandleScript.interactSave) { if (Input.GetKeyDown(KeyCode.E)) { pressedBtn = true; } if (Input.GetKeyUp(KeyCode.E) && pressedBtn) { GameInformation.LastScene = SceneManager.GetActiveScene().name; GameInformation.LastPos = playerPhisical.GetPlayerPos(); SaveInformation.SaveAll(); BaseHUDHandler.ToggleSavePopUp(); saveSoundFX.Play(); pressedBtn = false; } } }