Hi all,
At the moment I have three scripts, two of them are for the collision for two cubes…and one of them is the score. What happens is when i hit one cube, it is destroyed, and then the same with the other cube. My question is.
I have one scripts called ‘score’ in which i want my score to be written to, and then drawn on the screen. How would i go about doing it so that when i hit any of the cubes, the variable ‘score’ has one added to it. So if i hit cube 1, the score will be one, and then if i hit cube two it will be two and so on…
I am very new to scripting in unity, so any advice would be helpfull…Thanks!