public void MoveFocusTo(OptionsReferences newFocusedButton) { if (newFocusedButton != null) { uiItemSeletected = newFocusedButton; audioSource.clip = accept; audioSource.Play(); } else { audioSource.clip = tap; audioSource.Play(); } }
public void NextOption(OptionsReferences nextOption, int sign = 1) { nextOption.dropdown.value = (nextOption.dropdown.value + sign) % nextOption.dropdown.options.Count; nextOption.dropdown.RefreshShownValue(); }