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