修复M键不能及时反映解锁Mouse
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user