// Use this for initialization void Start() { var tmp = GetComponent <TextMeshProUGUI>(); gameSessions = FindObjectOfType <GameSessions>(); tmp.text = gameSessions.GetScore().ToString(); }
// Update is called once per frame //Lấy điểm từ Game Session tham khảo void Update() { scoreDisplay.text = gameSessions.GetScore().ToString(); }