Fix this
This commit is contained in:
1 file changed
+1
-6
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user