Fix this
This commit is contained in:
1 file changed
+1
-6
@@ -335,11 +335,6 @@ public class ProfileMenu : MonoBehaviour {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Update() {
|
void Update() {
|
||||||
if (Keyboard.current.escapeKey.wasPressedThisFrame) {
|
if (Keyboard.current.escapeKey.wasPressedThisFrame && exitButton.interactable) exitButton.onClick.Invoke();
|
||||||
if (popupObject != null) {
|
|
||||||
if (!canVote) canVote = true;
|
|
||||||
Destroy(popupObject);
|
|
||||||
} else Destroy(gameObject);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user