Files
2026-02-21 16:45:37 +08:00

15 lines
309 B
C#

using UnityEngine;
using UnityStandardAssets.CrossPlatformInput;
[RequireComponent(typeof(GUITexture))]
public class ForcedReset : MonoBehaviour
{
private void Update()
{
if (CrossPlatformInputManager.GetButtonDown("ResetObject"))
{
Application.LoadLevelAsync(Application.loadedLevelName);
}
}
}