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();
     }
 }
Exemplo n.º 2
0
 public void SalirDelJuego()
 {
     cartasRecogidas = 0;
     SavingSystem.DeleteFile();
     SceneManager.LoadScene(0);
 }