If the profile popup is open don't show close popup

This commit is contained in:
2026-01-19 20:40:46 -07:00
parent 7f95d261a7
commit 6c272e3af5

View File

@@ -46,6 +46,6 @@ public class MenuScript : MonoBehaviour
void Update() void Update()
{ {
if (Keyboard.current.escapeKey.wasPressedThisFrame) closePopup.SetActive(!closePopup.activeSelf); if (Keyboard.current.escapeKey.wasPressedThisFrame && !GameObject.Find("ProfilePrefab(Clone)")) closePopup.SetActive(!closePopup.activeSelf);
} }
} }