Question by
JamesBrodski · May 22, 2016 at 04:49 PM ·
gameobjecttextvariablescripting beginnerguitext
How to make GUI Text show number from another script
I have a gameobject named "fighterjet" which has a script attached to it named "HowLongJet.js" This scripts records how many seconds the fighterjet has survived. I used the variable "score." If the fighterjet collides with an enemy, it stops the timer.
I have another gameobject named "GameFinish" which has a GUI Text attached to it. My problem is, I want to get the value of the score onto the GUI Text.
Comment
Answer by Honorsoft · Nov 28, 2016 at 02:57 PM
How did you do it? I am an old c++ programmer from years back and I have to relearn some stuff like passing variables again...