Assets/Scripts/Character.cs
/// <summary>
/// Check the if the current pin has a reference to another in a direction
/// If it does the move there
/// </summary>
/// <param name="direction"></param>
Check the if the current pin has a reference to another in a direction
If it does the move there
Check the if the current pin has a reference to another in a direction If it does the move there
public void TrySetDirection(Direction direction)
    {
        var pin = CurrentPin.GetPinInDirection(direction);
        if (pin == null) return;
        MoveToPin(pin);
    }
public void TrySetDirection ( Direction direction ) { var pin = CurrentPin . GetPinInDirection ( direction ) ; if ( pin == null ) return ; MoveToPin ( pin ) ; }
Check the if the current pin has a reference to another in a direction
If it does the move there
Check the if the current pin has a reference to another in a direction If it does the move there
// Try get the next pin // If there is a pin then move to it
direction
Direction
None