Skip to content

Commit ada8e50

Browse files
committed
added IsDisplaying field
1 parent 33ed50b commit ada8e50

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Assets/BossRoom/Scripts/Client/UI/PopupPanel.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ public class PopupPanel : MonoBehaviour
1616
[SerializeField]
1717
CanvasGroup m_CanvasGroup;
1818

19-
public bool IsDisplaying => m_CanvasGroup.alpha > 0;
19+
public bool IsDisplaying => m_IsDisplaying;
20+
21+
bool m_IsDisplaying;
2022

2123
void Awake()
2224
{
@@ -39,12 +41,14 @@ void Show()
3941
{
4042
m_CanvasGroup.alpha = 1f;
4143
m_CanvasGroup.blocksRaycasts = true;
44+
m_IsDisplaying = true;
4245
}
4346

4447
void Hide()
4548
{
4649
m_CanvasGroup.alpha = 0f;
4750
m_CanvasGroup.blocksRaycasts = false;
51+
m_IsDisplaying = false;
4852
}
4953
}
5054
}

0 commit comments

Comments
 (0)