Beispiel #1
0
    void Start()
    {
        _gameOver = false;
        _score    = 0;
        _scoreDisplayer.UpdateScore(_score, false);

        _defaultAudioSnapshot.TransitionTo(0.1f);
    }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     /*LevelGenerator lg = LevelGenerator.getGenerator ("testLevel.txt");
      * lg.process ();
      * SaveLoadManager.SaveLevel (new Level (lg.getContents (), "newTest123"));*/
     ac     = Camera.main.GetComponent <AudioController> ();
     MainGC = this;
     score.UpdateScore();
     handleWin = Win;
     MainGC    = this;
     try{
         LoadLevel();
     }catch (System.UnauthorizedAccessException) {}
     try{
         winPanel.SetActive(false);
     }catch (UnassignedReferenceException) {}
 }