forked from MattRix/UnityDecompiled
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNavigation.cs
More file actions
110 lines (97 loc) · 1.78 KB
/
Navigation.cs
File metadata and controls
110 lines (97 loc) · 1.78 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
using System;
using UnityEngine.Serialization;
namespace UnityEngine.UI
{
[Serializable]
public struct Navigation : IEquatable<Navigation>
{
[Flags]
public enum Mode
{
None = 0,
Horizontal = 1,
Vertical = 2,
Automatic = 3,
Explicit = 4
}
[FormerlySerializedAs("mode"), SerializeField]
private Navigation.Mode m_Mode;
[FormerlySerializedAs("selectOnUp"), SerializeField]
private Selectable m_SelectOnUp;
[FormerlySerializedAs("selectOnDown"), SerializeField]
private Selectable m_SelectOnDown;
[FormerlySerializedAs("selectOnLeft"), SerializeField]
private Selectable m_SelectOnLeft;
[FormerlySerializedAs("selectOnRight"), SerializeField]
private Selectable m_SelectOnRight;
public Navigation.Mode mode
{
get
{
return this.m_Mode;
}
set
{
this.m_Mode = value;
}
}
public Selectable selectOnUp
{
get
{
return this.m_SelectOnUp;
}
set
{
this.m_SelectOnUp = value;
}
}
public Selectable selectOnDown
{
get
{
return this.m_SelectOnDown;
}
set
{
this.m_SelectOnDown = value;
}
}
public Selectable selectOnLeft
{
get
{
return this.m_SelectOnLeft;
}
set
{
this.m_SelectOnLeft = value;
}
}
public Selectable selectOnRight
{
get
{
return this.m_SelectOnRight;
}
set
{
this.m_SelectOnRight = value;
}
}
public static Navigation defaultNavigation
{
get
{
return new Navigation
{
m_Mode = Navigation.Mode.Automatic
};
}
}
public bool Equals(Navigation other)
{
return this.mode == other.mode && this.selectOnUp == other.selectOnUp && this.selectOnDown == other.selectOnDown && this.selectOnLeft == other.selectOnLeft && this.selectOnRight == other.selectOnRight;
}
}
}