18 lines
477 B
C#
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;
|
|
}
|
|
}
|
|
}
|