I have a simple problem and don't know the right approach; I am using this to control what level to load based on the score:
var Score: int = 0;
function Update () {
if(Score == 500)
{
Application.LoadLevel("Survival_Level_1");
}
the problem is I don't know how to read the actual score without loading a level containing the score object. Also, I am not sure if using this:
PlayerPrefs.SetInt("SCORE", PlayerPrefs.GetInt("SCORE")+1);
SCORE being the object with the score script attached - will actually save my score anywhere. Any advice/references are appreciated.