private IEnumerator SelectButton() { upAudioSource.Play(); yield return(new WaitForSeconds(.5f)); ButtonSelectedEvent?.Invoke(); isInteractable = false; }
private void ButtonSelected() { PlayAudioClip(); animator.SetBool(DOWN_HASH, true); ButtonSelectedEvent?.Invoke(buttonId); if (audioClips != null) { SetNextAudioClip(); } }