private void OptionsMenuFocused() { GameObject goOptionFocused = myOptions.GetObjectFromListWithIndex(myOptions.GetIndexOfOptionFocused()); if (Input.GetKeyDown(KeyCode.UpArrow)) { UnfocusCurrentOption((goOptionFocused)); myOptions.DecreaseOptionFocusedNumber(); } if (Input.GetKeyDown(KeyCode.DownArrow)) { UnfocusCurrentOption((goOptionFocused)); myOptions.IncreaseOptionFocusedNumber(); } FocusNextOption(); if (Input.GetKeyDown(KeyCode.Return)) { mySoundsProvider.PlayAudioClick(); // myOptions.EnableClickInButtons(false); myOptions.CheckOptionFocusedAndDoTheCorrectAction(); } }
public GameObject GetObjectFromListWithIndex(string sValueInDictionary) { return(myOptions.GetObjectFromListWithIndex(sValueInDictionary)); }