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
41 lines (34 loc) · 858 Bytes
/
Copy pathBaseEventData.cs
File metadata and controls
41 lines (34 loc) · 858 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
using System;
namespace UnityEngine.EventSystems
{
public class BaseEventData
{
private readonly EventSystem m_EventSystem;
private bool m_Used;
public BaseEventData(EventSystem eventSystem)
{
m_EventSystem = eventSystem;
}
public void Reset()
{
m_Used = false;
}
public void Use()
{
m_Used = true;
}
public bool used
{
get { return m_Used; }
}
public BaseInputModule currentInputModule
{
get { return m_EventSystem.currentInputModule; }
}
public GameObject selectedObject
{
get { return m_EventSystem.currentSelectedGameObject; }
set { m_EventSystem.SetSelectedGameObject(value, this); }
}
}
}