Fix back button in user search menu
This commit is contained in:
@@ -96,7 +96,7 @@ public class UserSearchMenu : MonoBehaviour
|
|||||||
|
|
||||||
async void Update()
|
async void Update()
|
||||||
{
|
{
|
||||||
if (Keyboard.current.escapeKey.wasPressedThisFrame) await SceneManager.LoadSceneAsync("MainMenu");
|
if (Keyboard.current.escapeKey.wasPressedThisFrame && !GameObject.Find("ProfilePrefab(Clone)")) await SceneManager.LoadSceneAsync("MainMenu");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UpdateStatus(bool enabled, string message = "")
|
private void UpdateStatus(bool enabled, string message = "")
|
||||||
|
|||||||
Reference in New Issue
Block a user