mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-17 18:40:33 +00:00
fix(PlayerControllerBase): Reset move / turn speeds OnDisable
This commit is contained in:
parent
22bfb1b429
commit
69c05f3ae7
@ -185,6 +185,13 @@ void Reset()
|
||||
this.enabled = false;
|
||||
}
|
||||
|
||||
void OnDisable()
|
||||
{
|
||||
horizontal = 0f;
|
||||
vertical = 0f;
|
||||
turnSpeed = 0f;
|
||||
}
|
||||
|
||||
public override void OnStartAuthority()
|
||||
{
|
||||
// Calculate DPI-aware sensitivity
|
||||
|
Loading…
Reference in New Issue
Block a user