If the profile popup is open don't show close popup
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user