Beispiel #1
0
 // Update is called once per frame
 void Update()
 {
     getStarCount = gameGenerator.GetComponent <GameGenerator>().star;
     GetComponent <Text>().text = "Star:" + getStarCount.ToString();
 }
Beispiel #2
0
    // Update is called once per frame
    void Update()
    {
        int setSpeed = (int)gameGenerator.GetComponent <GameGenerator>().distance;

        GetComponent <Text>().text = setSpeed.ToString() + "km";
    }