forked from MattRix/UnityDecompiled
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSpriteState.cs
More file actions
59 lines (52 loc) · 1.09 KB
/
Copy pathSpriteState.cs
File metadata and controls
59 lines (52 loc) · 1.09 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
using System;
using UnityEngine.Serialization;
namespace UnityEngine.UI
{
[Serializable]
public struct SpriteState : IEquatable<SpriteState>
{
[FormerlySerializedAs("highlightedSprite"), FormerlySerializedAs("m_SelectedSprite"), SerializeField]
private Sprite m_HighlightedSprite;
[FormerlySerializedAs("pressedSprite"), SerializeField]
private Sprite m_PressedSprite;
[FormerlySerializedAs("disabledSprite"), SerializeField]
private Sprite m_DisabledSprite;
public Sprite highlightedSprite
{
get
{
return this.m_HighlightedSprite;
}
set
{
this.m_HighlightedSprite = value;
}
}
public Sprite pressedSprite
{
get
{
return this.m_PressedSprite;
}
set
{
this.m_PressedSprite = value;
}
}
public Sprite disabledSprite
{
get
{
return this.m_DisabledSprite;
}
set
{
this.m_DisabledSprite = value;
}
}
public bool Equals(SpriteState other)
{
return this.highlightedSprite == other.highlightedSprite && this.pressedSprite == other.pressedSprite && this.disabledSprite == other.disabledSprite;
}
}
}