public void UpdateDirection(float direction) { if (IsRight(direction)) { currentDirection = VerticalMovement.Constants.Direction.Top; } else if (IsLeft(direction)) { currentDirection = VerticalMovement.Constants.Direction.Down; } }
public static float Call(VerticalMovement.Constants.Direction direction) { if (direction == VerticalMovement.Constants.Direction.Down) { return(DownInFloat); } else if (direction == VerticalMovement.Constants.Direction.Top) { return(TopInFloat); } else { return(NullInFloat); } }
private MovementDirection() { currentDirection = VerticalMovement.Constants.Direction.Down; }