Tanoda
MyEventSystem.cs
Go to the documentation of this file.
2using UnityEngine;
3
4public class MyEventSystem : EventSystem
5{
6 public static MyEventSystem instance;
7
8 protected override void Start()
9 {
10 instance = this;
11 base.Start();
12 }
13
14 protected override void OnEnable()
15 {
16 base.OnEnable();
17 }
18
19 protected override void Update()
20 {
21 EventSystem originalCurrent = EventSystem.current;
22 current = this;
23 base.Update();
24 current = originalCurrent;
25 }
26}
27
override void Update()
override void Start()
Definition: MyEventSystem.cs:8
static MyEventSystem instance
Definition: MyEventSystem.cs:6
override void OnEnable()