diff --git a/Assets/Mirror/Examples/_Common/Controllers/TankController/TankControllerBase.cs b/Assets/Mirror/Examples/_Common/Controllers/TankController/TankControllerBase.cs index 0ce3c3590..2c9a7a261 100644 --- a/Assets/Mirror/Examples/_Common/Controllers/TankController/TankControllerBase.cs +++ b/Assets/Mirror/Examples/_Common/Controllers/TankController/TankControllerBase.cs @@ -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