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

public class MaxScoreTextScript : 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 = "Max::" + Gamemanager.GetComponent<GameManager>().MaxScore;
    }
}
