Newer
Older
Stefan Richter
committed
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.InputSystem.UI;
Stefan Richter
committed
public class EventsystemMode_Ctrl : MonoBehaviour
{
//public GameObject myself_GObj;
//public GameObject StandaloneInputModule_GObj;
//public GameObject InputSystem_GObj;
public StandaloneInputModule StandaloneInputModule_script;
public InputSystemUIInputModule InputSystem_script;
Stefan Richter
committed
void Start()
{
Stefan Richter
committed
}
private void Update()
{
Stefan Richter
committed
EventSystemModule = InputManagerVersion;
//if (GpMode_before != UIconfig.EventSystemModule)
Stefan Richter
committed
}
Stefan Richter
committed
//Todo Eventbased
switch (UIconfig.EventSystemModule)
{
case 0:
break;
Stefan Richter
committed
//StandaloneInputModule_script.ActivateModule();
//InputSystem_script.DeactivateModule();
gameObject.GetComponent<StandaloneInputModule>().enabled = true;
Stefan Richter
committed
gameObject.GetComponent<InputSystemUIInputModule>().enabled = false;
break;
Stefan Richter
committed
case 2:
//InputSystem_script.ActivateModule();
//StandaloneInputModule_script.DeactivateModule();
Stefan Richter
committed
case 3:
default:
gameObject.GetComponent<StandaloneInputModule>().enabled = false;
gameObject.GetComponent<InputSystemUIInputModule>().enabled = true;
break;
}
Stefan Richter
committed
}