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

public class DisplayScore : MonoBehaviour {

	public Text scoreText;  // public if you want to drag your text object in there manually
	public float score;
 
    void Start () {
		
    }
 
    void Update () {
		score = GameObject.Find ("GameManager").GetComponent<GameManager> ().points;
		scoreText.text = score.ToString(); 
    }
}