15 lines
309 B
C#
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);
|
|
}
|
|
}
|
|
}
|