mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-01-10 10:59:36 +08:00
Update CursorUnlocker.cs
This commit is contained in:
parent
23483a6108
commit
4b8298fd2e
@ -62,7 +62,7 @@ namespace UnityExplorer.Core.Input
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
ExplorerCore.LogWarning($"Exception setting up Camera.onPostRender callback: {ex}");
|
ExplorerCore.LogWarning($"Exception setting up Aggressive Mouse Unlock: {ex}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -72,9 +72,7 @@ namespace UnityExplorer.Core.Input
|
|||||||
{
|
{
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
ExplorerCore.Log("Yielding end of frame");
|
|
||||||
yield return _waitForEndOfFrame;
|
yield return _waitForEndOfFrame;
|
||||||
ExplorerCore.Log("Yielded");
|
|
||||||
|
|
||||||
if (UIManager.ShowMenu)
|
if (UIManager.ShowMenu)
|
||||||
UpdateCursorControl();
|
UpdateCursorControl();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user