private void ClickAnimationOnPlay() { _stateModel.SetAnimated(true); _audioManager.Play(Clip.Swich); // _stateModel.OnClick(); _sequence = DOTween.Sequence(); _sequence.Append(_line.DOScale(_animatedScale, 0.3f)).SetEase(Ease.InOutCubic); _sequence.Append(_switchObject.GetDirection() == Direction.Vertical ? transform.DORotate(_horizontal, 0.3f) : transform.DORotate(_vertical, 0.3f)); _sequence.Append(_line.DOScale(_defaultScale, 0.3f)).SetEase(Ease.InOutCubic); _sequence.OnComplete(() => { _switchObject.SetDirection(_switchObject.GetDirection() == Direction.Vertical ? Direction.Horizontal : Direction.Vertical); _switchObject.SetClick(InputState.Non); _stateModel.SetAnimated(false); }).SetEase(Ease.InOutCubic); _sequence.Play(); }