fix(PlayerControllerBase): Reset move / turn speeds OnDisable

This commit is contained in:
MrGadget 2024-09-18 19:39:17 -04:00
parent 7772a471c8
commit 86ad3b2c2d

View File

@ -185,6 +185,13 @@ void Reset()
this.enabled = false; this.enabled = false;
} }
void OnDisable()
{
horizontal = 0f;
vertical = 0f;
turnSpeed = 0f;
}
public override void OnStartAuthority() public override void OnStartAuthority()
{ {
// Calculate DPI-aware sensitivity // Calculate DPI-aware sensitivity