using UnityEngine;
using System.Collections;

public class GUItext : MonoBehaviour {

	public float fltScore;
//	public int RandomNum;

	// Use this for initialization
	void Start () {
		CardboardGUI.IsGUIVisible = true;
		CardboardGUI.onGUICallback += this.OnGUI;
		fltScore = 0F;
	}
	
	// Update is called once per frame
	void Update () {
	
	}

	void OnGUI() {

		GUILayout.BeginArea (new Rect (10, 10, Screen.width, Screen.height));
			GUILayout.BeginHorizontal ();
				GUILayout.Label ("Tree score: " + fltScore.ToString());
			GUILayout.EndHorizontal ();
//			GUILayout.BeginHorizontal ();
//				GUILayout.Label ("Random Number: " + RandomNum.ToString());
//			GUILayout.EndHorizontal ();
		GUILayout.EndArea ();
	}
	public void AddScore() {
		fltScore += 1F;
	}
}
