Пример #1
0
    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();
        }
    }
Пример #2
0
 public GameObject GetObjectFromListWithIndex(string sValueInDictionary)
 {
     return(myOptions.GetObjectFromListWithIndex(sValueInDictionary));
 }