public void DoBlink(VolumeButtonsEventType e, VolumeButtons ctrl) { if (InterestingEvent == e) { Debug.LogFormat("DoBlink for {0} event", InterestingEvent.ToString()); StartCoroutine(Flash(2)); } }
private void _UpdateText(VolumeButtons ctrl) { Text volumeLevel = gameObject.GetComponent <UnityEngine.UI.Text>(); string value = ctrl.SystemVolumeLevel.ToString("N2"); Debug.LogFormat("Volume updated {0} of 1.0", value); volumeLevel.text = value; }
public void OnVolumeUpdated(VolumeButtonsEventType e, VolumeButtons ctrl) { _UpdateText(ctrl); }