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

public class ScoreTextScript : MonoBehaviour
{ 
    private GameObject Gamemanager;

    Text text;
    // Start is called before the first frame update
    void Start()
    {
       text = GetComponent<Text>();
       Gamemanager = GameObject.Find("GameManager");
    }

    // Update is called once per frame
    void Update()
    {
        text.text = "Score::" + Gamemanager.GetComponent<GameManager>().Score;
        
    }
}
