Assets/Scripts/MVC/Controllers/CharacterController.cs
/// <summary>
/// Movement in Left/Right directions
/// </summary>
/// <param name="direction">Left/Right</param>
Movement in Left/Right directions
Movement in Left / Right directions
public void MoveInDirection ( CharacterMoveDirection direction )
    {
        RotateInDirection ( direction );
        if(direction == CharacterMoveDirection.Left)
            _characterView.transform.position += Vector3.left * Time.deltaTime * _characterModel._movementSpeed;
        else
            _characterView.transform.position += Vector3.right * Time.deltaTime * _characterModel._movementSpeed;
    }
public void MoveInDirection ( CharacterMoveDirection direction ) { RotateInDirection ( direction ) ; if ( direction == CharacterMoveDirection . Left ) _characterView . transform . position += Vector3 . left * Time . deltaTime * _characterModel . _movementSpeed ; else _characterView . transform . position += Vector3 . right * Time . deltaTime * _characterModel . _movementSpeed ; }
Movement in Left/Right directions
Movement in Left / Right directions
direction
CharacterMoveDirection
None