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

public class Score : MonoBehaviour
{
    public GameObject player;

	void Start ()
    {
		
	}
	
	void Update ()
    {
        gameObject.GetComponent<Text>().text = ("" + player.GetComponent<Player>().getScore());
	}
}
