Example #1
0
 public void DoBlink(VolumeButtonsEventType e, VolumeButtons ctrl)
 {
     if (InterestingEvent == e)
     {
         Debug.LogFormat("DoBlink for {0} event", InterestingEvent.ToString());
         StartCoroutine(Flash(2));
     }
 }
Example #2
0
    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;
    }
Example #3
0
 public void OnVolumeUpdated(VolumeButtonsEventType e, VolumeButtons ctrl)
 {
     _UpdateText(ctrl);
 }