mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
fix(PlayerControllerBase): Reset move / turn speeds OnDisable
This commit is contained in:
parent
7772a471c8
commit
86ad3b2c2d
@ -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