Skip to content
Snippets Groups Projects
Select Git revision
  • 379098f0e172c4aa9a373ac6e249b7e63a6aac52
  • master default
  • dependabot/nuget/source/Sample/Newtonsoft.Json-13.0.1
  • dependabot/nuget/source/MasterDevs.ChromeDevTools.Tests/Newtonsoft.Json-13.0.1
  • dependabot/nuget/source/ProtocolGenerator/Newtonsoft.Json-13.0.1
  • dependabot/nuget/source/ChromeDevTools/Newtonsoft.Json-13.0.1
  • dependabot/nuget/source/ChromeDevTools/System.Net.Http-4.3.4
  • revert-29-revert-24-protocol_62
  • revert-24-protocol_62
  • 1.1.0
  • 1.0.2
  • 1.0.1
  • 1.0.0.40915
13 results

GetCollectionEntriesCommandResponse.cs

Blame
  • EventsystemMode_Ctrl.cs 1.70 KiB
    using UnityEngine;
    using UnityEngine.EventSystems;
    using UnityEngine.InputSystem.UI;
    using static UIconfig;
    
    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;
    
        private int GpMode_before = -99;
    
    
        void Start()
        {
            Update2();
        }
    
        private void Update()
        {
            /* 
            Update3();
            */
        }
    
        private void Update3()
        {
            Update2();
    
            if (GpMode_before != UIconfig.InputManagerVersion)
                EventSystemModule = InputManagerVersion;
    
            //if (GpMode_before != UIconfig.EventSystemModule)
        }
    
    
        private void Update2()
        {
            //Todo Eventbased
            switch (UIconfig.EventSystemModule)
            {
                case 0:
                    break;
    
                case 1:
                    //StandaloneInputModule_script.ActivateModule();
                    //InputSystem_script.DeactivateModule();
    
                    gameObject.GetComponent<StandaloneInputModule>().enabled = true;
                    gameObject.GetComponent<InputSystemUIInputModule>().enabled = false;
                    break;
    
                case 2:
                    //InputSystem_script.ActivateModule();
                    //StandaloneInputModule_script.DeactivateModule();
                case 3:
                default:
                    gameObject.GetComponent<StandaloneInputModule>().enabled = false;
                    gameObject.GetComponent<InputSystemUIInputModule>().enabled = true;
                    break;
            }
    
            GpMode_before = UIconfig.GameplayMode;
        }
    }