public SelectableOption GetOptionWest() { if (westOption == null || wasInspected) { return(null); } if (optionActive) { return(westOption); } SelectableOption optionToReturn = null; if (westOption != null) { wasInspected = true; optionToReturn = westOption.GetOptionWest(); wasInspected = false; } return(optionToReturn); }
/// <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()); } }