using UnityEngine;
using UnityEngine.UI;
using System.Collections;

public class DisplayManager : MonoBehaviour {

	// Local attributes
	public Text scoreText;

	// Object/Script References
	private GameObject gameMan;
	private GameManager gManScript;


	// Use this for initialization
	void Start () 
	{
		// Initialise attributes
		SetScoreText ();

		// Initialise object/script references
		gameMan =  GameObject.Find ("Game Manager");
		gManScript = gameMan.GetComponent<GameManager> ();
	}
	
	// Update is called once per frame
	void Update () 
	{
		SetScoreText ();
	}

	void SetScoreText ()
	{
		scoreText.text = "Score: " + gManScript.score.ToString ();
	}
}
