using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class RealTimeScoreDisplayer : MonoBehaviour {
    public Text text;
    PlayerScript player;
	// Use this for initialization
	void Start () {
        player = GameObject.Find("player").GetComponent<PlayerScript>();
	}
	
	// Update is called once per frame
	void Update () {
        text.text = player.points.ToString();
		
	}
}
