This commit is contained in:
Lncvrt committed 2026-03-08 23:05:33 -07:00
1 parent baba8fa7ca
commit 7dbef226d2
1 file changed
+1 -6
+1 -6
View File
@@ -335,11 +335,6 @@ public class ProfileMenu : MonoBehaviour {
}
void Update() {
if (Keyboard.current.escapeKey.wasPressedThisFrame) {
if (popupObject != null) {
if (!canVote) canVote = true;
Destroy(popupObject);
} else Destroy(gameObject);
}
if (Keyboard.current.escapeKey.wasPressedThisFrame && exitButton.interactable) exitButton.onClick.Invoke();
}
}