mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-17 18:40:33 +00:00
fix(TankControllerBase): Reset move / turn speeds OnDisable
This commit is contained in:
parent
69c05f3ae7
commit
eed9259efe
@ -162,6 +162,13 @@ protected virtual void Reset()
|
||||
this.enabled = false;
|
||||
}
|
||||
|
||||
void OnDisable()
|
||||
{
|
||||
horizontal = 0f;
|
||||
vertical = 0f;
|
||||
turnSpeed = 0f;
|
||||
}
|
||||
|
||||
public override void OnStartAuthority()
|
||||
{
|
||||
// capsuleCollider and characterController are mutually exclusive
|
||||
|
Loading…
Reference in New Issue
Block a user