Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     ScoreBoard.ClearTotalScore();
     if (instance != null)
     {
         Destroy(gameObject);
     }
     else
     {
         GameObject.DontDestroyOnLoad(gameObject);
         instance = this;
         SetMenuLoaded(true);
     }
     if (jumpToScene)
     {
         LevelManager.SetFirstLevel(startingLevel);
     }
 }