Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        var tmp = GetComponent <TextMeshProUGUI>();

        gameSessions = FindObjectOfType <GameSessions>();
        tmp.text     = gameSessions.GetScore().ToString();
    }
Beispiel #2
0
 // Update is called once per frame
 //Lấy điểm từ Game Session tham khảo
 void Update()
 {
     scoreDisplay.text = gameSessions.GetScore().ToString();
 }