Not sure what's going on but I have a variable, SCORE, in my GameManager script inside my Game Manager prefab. it's initialization is simple:
var score:int = 0;
I then update the score from another object (the popping bubbles) like this:
gm:Transform; //I drag the Game Manager prefab clone here
gm.GetComponent(GameManager).setScore(); //which simply does score++, period
problem is (you're gonna laugh your head off) when I stop the game the score stays the same in the Inspector and keeps the value when I restart the game. How trippy is that?
Can anyone tell me how much of a doof I am and what I need to do to reset the score, please? btw, I have set the score =0; at like 10 places in the init script and it stiiiiil starts at the value in the Inspector. ha ha. I have to manually set it back to 0 everytime. Thanks in advance, friends.