forked from Unity-Technologies/uGUI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBaseEventData.cs
More file actions
42 lines (36 loc) · 945 Bytes
/
Copy pathBaseEventData.cs
File metadata and controls
42 lines (36 loc) · 945 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
namespace UnityEngine.EventSystems
{
public abstract class AbstractEventData
{
protected bool m_Used;
public virtual void Reset()
{
m_Used = false;
}
public virtual void Use()
{
m_Used = true;
}
public virtual bool used
{
get { return m_Used; }
}
}
public class BaseEventData : AbstractEventData
{
private readonly EventSystem m_EventSystem;
public BaseEventData(EventSystem eventSystem)
{
m_EventSystem = eventSystem;
}
public BaseInputModule currentInputModule
{
get { return m_EventSystem.currentInputModule; }
}
public GameObject selectedObject
{
get { return m_EventSystem.currentSelectedGameObject; }
set { m_EventSystem.SetSelectedGameObject(value, this); }
}
}
}