Files
UltimateFishing2020/Assets/Plugins/Assembly-CSharp-firstpass/Photon/Chat/UtilityScripts/EventSystemSpawner.cs
2026-03-04 10:03:45 +08:00

19 lines
383 B
C#

using UnityEngine;
using UnityEngine.EventSystems;
namespace Photon.Chat.UtilityScripts
{
public class EventSystemSpawner : MonoBehaviour
{
private void OnEnable()
{
if (Object.FindObjectOfType<EventSystem>() == null)
{
GameObject obj = new GameObject("EventSystem");
obj.AddComponent<EventSystem>();
obj.AddComponent<StandaloneInputModule>();
}
}
}
}