private void PlayerOrientation(Vector3 direction) { var degree = Math.Abs((_playerTrans.eulerAngles - direction).y); if (degree == 90) { _playerTrans.DORotate(direction, 0.3f); } else { _playerTrans.eulerAngles = direction; } }