don't queue if not in game

This commit is contained in:
D1GQ committed 2024-08-02 21:11:21 -05:00
1 parent 58b01a4f1a
commit a4aa0296f3
1 file changed
+1 -1
+1 -1
View File
@@ -72,7 +72,7 @@ class BetterNotificationManager
BAUNotificationManagerObj.transform.position = AspectPosition.ComputeWorldPosition(localCamera, AspectPosition.EdgeAlignments.Bottom, new Vector3(-1.3f, 0.7f, localCamera.nearClipPlane + 0.1f));
showTime -= Time.deltaTime;
if (showTime <= 0f)
if (showTime <= 0f && GameStates.IsInGame)
{
BAUNotificationManagerObj.transform.Find("Sizer/ChatText (TMP)").GetComponent<TextMeshPro>().text = "";
BAUNotificationManagerObj.SetActive(false);