更新场景

This commit is contained in:
2025-11-13 00:17:40 +08:00
parent 5440af548e
commit f60512b540
828 changed files with 62968 additions and 1239396 deletions

View File

@@ -1,28 +0,0 @@
using UnityEngine;
using UnityEngine.SceneManagement;
namespace Obvious.Soap.Example
{
public class GameManager : MonoBehaviour
{
[SerializeField] private KeyCode _reloadSceneKey = KeyCode.R;
[SerializeField] private KeyCode _deletePlayerPrefs = KeyCode.P;
void Update()
{
if (Input.GetKeyDown(_reloadSceneKey))
ReloadScene();
if (Input.GetKeyDown(_deletePlayerPrefs))
PlayerPrefs.DeleteAll();
if (Input.GetKeyDown(KeyCode.Escape))
Application.Quit();
}
public void ReloadScene()
{
SceneManager.LoadScene(SceneManager.GetActiveScene().name);
}
}
}