diff options
Diffstat (limited to 'Thronefall_1_57/Decompile/Rewired.Integration.UnityUI/RewiredEventSystem.cs')
| -rw-r--r-- | Thronefall_1_57/Decompile/Rewired.Integration.UnityUI/RewiredEventSystem.cs | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/Thronefall_1_57/Decompile/Rewired.Integration.UnityUI/RewiredEventSystem.cs b/Thronefall_1_57/Decompile/Rewired.Integration.UnityUI/RewiredEventSystem.cs deleted file mode 100644 index c46b002..0000000 --- a/Thronefall_1_57/Decompile/Rewired.Integration.UnityUI/RewiredEventSystem.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine; -using UnityEngine.EventSystems; - -namespace Rewired.Integration.UnityUI; - -[AddComponentMenu("Rewired/Rewired Event System")] -public class RewiredEventSystem : EventSystem -{ - [Tooltip("If enabled, the Event System will be updated every frame even if other Event Systems are enabled. Otherwise, only EventSystem.current will be updated.")] - [SerializeField] - private bool _alwaysUpdate; - - public bool alwaysUpdate - { - get - { - return _alwaysUpdate; - } - set - { - _alwaysUpdate = value; - } - } - - protected override void Update() - { - if (alwaysUpdate) - { - EventSystem eventSystem = EventSystem.current; - if (eventSystem != this) - { - EventSystem.current = this; - } - try - { - base.Update(); - return; - } - finally - { - if (eventSystem != this) - { - EventSystem.current = eventSystem; - } - } - } - base.Update(); - } -} |
