mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
PlayerControllerBase: fixed comment in HandleTurning
This commit is contained in:
parent
4158a5e6fe
commit
e467be0d90
@ -290,7 +290,7 @@ void HandleTurning(float deltaTime)
|
|||||||
{
|
{
|
||||||
float targetTurnSpeed = 0f;
|
float targetTurnSpeed = 0f;
|
||||||
|
|
||||||
// Q and E cancel each other out, reducing targetTurnSpeed to zero.
|
// TurnLeft and TurnRight cancel each other out, reducing targetTurnSpeed to zero.
|
||||||
if (moveKeys.TurnLeft != KeyCode.None && Input.GetKey(moveKeys.TurnLeft))
|
if (moveKeys.TurnLeft != KeyCode.None && Input.GetKey(moveKeys.TurnLeft))
|
||||||
targetTurnSpeed -= maxTurnSpeed;
|
targetTurnSpeed -= maxTurnSpeed;
|
||||||
if (moveKeys.TurnRight != KeyCode.None && Input.GetKey(moveKeys.TurnRight))
|
if (moveKeys.TurnRight != KeyCode.None && Input.GetKey(moveKeys.TurnRight))
|
||||||
|
Loading…
Reference in New Issue
Block a user