We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33ed50b commit ada8e50Copy full SHA for ada8e50
Assets/BossRoom/Scripts/Client/UI/PopupPanel.cs
@@ -16,7 +16,9 @@ public class PopupPanel : MonoBehaviour
16
[SerializeField]
17
CanvasGroup m_CanvasGroup;
18
19
- public bool IsDisplaying => m_CanvasGroup.alpha > 0;
+ public bool IsDisplaying => m_IsDisplaying;
20
+
21
+ bool m_IsDisplaying;
22
23
void Awake()
24
{
@@ -39,12 +41,14 @@ void Show()
39
41
40
42
m_CanvasGroup.alpha = 1f;
43
m_CanvasGroup.blocksRaycasts = true;
44
+ m_IsDisplaying = true;
45
}
46
47
void Hide()
48
49
m_CanvasGroup.alpha = 0f;
50
m_CanvasGroup.blocksRaycasts = false;
51
+ m_IsDisplaying = false;
52
53
54
0 commit comments