Info.cs 376 Bytes
Newer Older
Nathan De Castro's avatar
Fresh!  
Nathan De Castro committed
1 2 3
using UnityEngine;
using UnityEngine.UI;

4
public class Info : MonoBehaviour {
Nathan De Castro's avatar
Fresh!  
Nathan De Castro committed
5 6
    private Text info_text;

7 8
    void Start () {
        info_text = GetComponent<Text> ();
Nathan De Castro's avatar
Fresh!  
Nathan De Castro committed
9 10 11
        info_text.text = "";
    }

12 13
    void Update () {
        info_text.text = "Average Vol: " + AudioManager.instance.GetAverageVolume () + " Max: " + AudioManager.instance.volume_range_max;
Nathan De Castro's avatar
Fresh!  
Nathan De Castro committed
14 15 16

    }
}