private void Update() { if (Input.GetKeyDown(KeyCode.P)) { if (worldManager == null) { worldManager = FindObjectOfType <WorldManager>(); } objectInteractionController = FindObjectOfType <ObjectInteractionController>(); savingSystem.SaveGame(worldManager, objectInteractionController); } if (Input.GetKeyDown(KeyCode.L)) { SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex); } if (Input.GetKeyDown(KeyCode.Delete)) { savingSystem.DeleteFile(); } }
public void SalirDelJuego() { cartasRecogidas = 0; SavingSystem.DeleteFile(); SceneManager.LoadScene(0); }