private void ClickSound() { if (base.interactable) { UIAudioManager.PlayOneShotAudio(pressedClip, volume, mixerGroup); } }
private void Click() { if (!isInteractive) { return; } isOn = !isOn; OnToggle.Invoke(); UIAudioManager.PlayOneShotAudio(pressedClip, volume, mixerGroup); }
private void Highlight() { if (!base.interactable) { return; } if (toolTip.Length > 0) { Tooltip.ShowTooltipStatic(toolTip, tooltipTextColor, tooltipBgColor, localizeText); } UIAudioManager.PlayOneShotAudio(highlightedClip, volume, mixerGroup); }
private void Highlight() { if (!isInteractive) { return; } backgroundColor = highlightedColor; if (toolTip.Length > 0) { Tooltip.ShowTooltipStatic(toolTip, tooltipTextColor, tooltipBgColor, localizeTooltip); } UIAudioManager.PlayOneShotAudio(highlightedClip, volume, mixerGroup); }