Assets/Scripts/MVC/Controllers/CharacterController.cs
/// <summary>
/// Character orientation in Left/Right directions
/// </summary>
/// <param name="direction">Facing Left/Right</param>
Character orientation in Left/Right directions
Character orientation in Left / Right directions
private void RotateInDirection (CharacterMoveDirection direction )
    {
        if ( direction == CharacterMoveDirection.Right )
        {
            if ( _characterView.transform.rotation == _rightRotation )
                return;
            _characterView.transform.rotation = _rightRotation;
        }
        else
        {
            if ( _characterView.transform.rotation == _leftRotation )
                return;
            _characterView.transform.rotation = _leftRotation;
        }
    }
private void RotateInDirection ( CharacterMoveDirection direction ) { if ( direction == CharacterMoveDirection . Right ) { if ( _characterView . transform . rotation == _rightRotation ) return ; _characterView . transform . rotation = _rightRotation ; } else { if ( _characterView . transform . rotation == _leftRotation ) return ; _characterView . transform . rotation = _leftRotation ; } }
Character orientation in Left/Right directions
Character orientation in Left / Right directions
direction
CharacterMoveDirection
None