I have a script called keepingScore, which is currently attached to my player. I also have a script called sphereScore, which is attached to my objects that I wish to collect. I have a GUI text box that appear, but it stays at zero even as my player collects (or destroys rather -_-) the objects. I would like it to add the score by 1 for each of my 6 objects. And then display the text “YOU WIN!” after completion. If anyone could look over my scripts and help me it would be very much appreciated. Thanks!
1686122–105715–keepingScore.cs (325 Bytes)
1686122–105717–sphereScore.cs (373 Bytes)