修复M键不能及时反映解锁Mouse

This commit is contained in:
2023-11-05 01:29:09 +09:00
parent ba27cab015
commit 90cf429893
3 changed files with 66 additions and 64 deletions
@@ -144,8 +144,10 @@ public class FreeFlyCamera : MonoBehaviour
private void Update()
{
if (Input.GetKey(KeyCode.M))
if (Input.GetKeyDown(KeyCode.M))
{
_active = !_active;
}
if (!_active)
{