Files
Ultimate-Fishing-Simulator-…/Assets/Scripts/Assembly-CSharp/Michsky/UI/MTP/InputSystemChecker.cs
2026-03-04 09:37:33 +08:00

18 lines
477 B
C#

using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.InputSystem.UI;
namespace Michsky.UI.MTP
{
public class InputSystemChecker : MonoBehaviour
{
private void Awake()
{
Object.Destroy(base.gameObject.GetComponent<StandaloneInputModule>());
InputSystemUIInputModule inputSystemUIInputModule = base.gameObject.AddComponent<InputSystemUIInputModule>();
inputSystemUIInputModule.enabled = false;
inputSystemUIInputModule.enabled = true;
}
}
}