Info.cs 318 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
    void Update () {
13
        info_text.text = "RMS: " + AM.i.GetRMS () + " dB: " + AM.i.GetVolume ();
Nathan De Castro's avatar
Fresh!  
Nathan De Castro committed
14 15
    }
}