void Update() { switch (powerBar.CurrentStatus) { case PowerBar.Statuses.Idle: playerMovement.ChangeSpeed(originalSpeed); break; case PowerBar.Statuses.Using: playerMovement.ChangeSpeed(newSpeed); break; case PowerBar.Statuses.Repleneshing: playerMovement.ChangeSpeed(originalSpeed - 3f); break; default: break; } }