示例#1
0
    public SelectableOption GetOptionNorth()
    {
        if (northOption == null || wasInspected)
        {
            return(null);
        }

        if (optionActive)
        {
            return(northOption);
        }
        SelectableOption optionToReturn = null;

        if (northOption != null)
        {
            wasInspected   = true;
            optionToReturn = northOption.GetOptionNorth();
            wasInspected   = false;
        }
        return(optionToReturn);
    }
示例#2
0
    /// <summary>
    ///
    /// </summary>
    /// <param name="hInput"></param>
    /// <param name="vInput"></param>
    protected void SetNextOption(int hInput, int vInput)
    {
        if (hInput > 0)
        {
            SelectNextOption(currentlySelectedOption.GetOptionEast());
        }
        else if (hInput < 0)
        {
            SelectNextOption(currentlySelectedOption.GetOptionWest());
        }


        if (vInput > 0)
        {
            SelectNextOption(currentlySelectedOption.GetOptionNorth());
        }
        else if (vInput < 0)
        {
            SelectNextOption(currentlySelectedOption.GetOptionSouth());
        }
    }