trying out some simple basically
putting a text field and the info
of that text field would depend on
button pressed of player
basically ive set up a simple scene
that has 3 scripts
1 script global script which contains the varaibles and such
and 2 scripts one for each button
for button A basically what it does is changes the value of the variable to 10
button B just simply changes the value of a variable to 30
now the 4th script a bit confused how to work
all i want to happen is whatever the value of the variable be displayed on to the text field
anyways here are my 3scripts
Script1 which holds the global variable
static var score: int = 0;
function Start () {
}
function Update () {
}
here are the 2 button scripts
Button A script
Button A
function Start ()
{
Gamemaster.score = 10 ;
Debug.Log (Gamemaster.score);
}
function Update () {
}
Button B
#pragma strict
function Start ()
{
Gamemaster.score = 30 ;
Debug.Log (Gamemaster.score);
}
function Update () {
}
then this script having issues with
…not sure whats wrong