导入odin

This commit is contained in:
2026-01-01 23:09:08 +08:00
parent 9ceffccd39
commit 04dd4a23b2
814 changed files with 120820 additions and 87 deletions

View File

@@ -0,0 +1,28 @@
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);
}
}
}