hi i am using a static var to keep my score as it is accessed by a few different scripts.
the problem i am having is once the win or lose crita is met starting the game again from the main menu just send u back to win or lose screen.
now i know this is because static var dnt reset themselves, but im stuck trying to find a way to reset the score before the game moves on to the next scene
here is my win lose script
here the var from its script
static var score: int;
and this is the script id like to reset it in if possible
var Lose : int = -1;
var Win : int = 1000;
function Update () {
if(GetComponent(NewTurret).score <= Lose){
Application.LoadLevel(4);
}
if(GetComponent(NewTurret).score >= Win){
Application.LoadLevel(3);
}
}