Score Text and Objects
- Keshav Batra
- Feb 3, 2023
- 1 min read
I've finally finished up with my score text and I made the objects into a rock and some fruits. I changed the objects by going to the unity store and downloading and importing them. For the text I used get component to connect the score script and the player movement script to reach the coin amount and made the player movement script a game object so that I could connect it to the get component.
Scoretext.text = "Score: " + PlayerMovement.GetComponent<PlayerMovement>().CoinAmount; //The player movement has been created into an object which could be dragged into the
Commentaires