private void UpdateDoorSpeed(bool powered) { on = powered; UpdateAnimAndSoundParams(powered); float positionPercent = animController.GetPositionPercent(); animController.Play(animController.CurrentAnim.hash, animController.PlayMode, 1f, 0f); animController.SetPositionPercent(positionPercent); }