fix(TankControllerBase): Reset move / turn speeds OnDisable

This commit is contained in:
MrGadget 2024-09-18 19:39:40 -04:00
parent 69c05f3ae7
commit eed9259efe

View File

@ -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