Question by
cfvillamor · Jul 12, 2017 at 01:42 PM ·
script.gamescripting beginnerscriptingbasicsscore
Hi, we are currently doing our thesis, it's a quiz type of game. My question is, how do I collect the scores from four different scripts and output them on the menu page?
I'm a beginner and even if I search, I still don't get it. Thanks in Advance!
Comment
Answer by Tekman03 · Jul 17, 2017 at 07:46 PM
Hi there @cfvillamor.
You can use this to access the 4 scripts in another script and then set a UI Text object to the output. It is used in the Flappy Bird tutorial GameControl script to allow access to another script.
https://unity3d.com/learn/tutorials/topics/2d-game-creation/adding-game-controller?playlist=17093
If you start about 3:00 that should help you.
I hope this what you want. Craig