// Use this for initialization void Start() { DontDestroyOnLoad(this); // want to keep this between scenes pss = UIHelp.getAccessTo <PlayerScoresScript>("PlayerScores"); if (pss == null) { Instantiate(playersScoresObj); Debug.Log("Instantiated PlayerScoresObj"); pss = UIHelp.getAccessTo <PlayerScoresScript>("PlayerScores"); } // set defaults difficulty = 0; levelSize = 0; movingWalls = false; }
// Use this for initialization void Start() { pss = UIHelp.getAccessTo <PlayerScoresScript>("PlayerScores"); TellScores(); }
// Use this for initialization void Start() { pss = UIHelp.getAccessTo <PlayerScoresScript>("PlayerScores"); pss.SetupStoredScores(); }