Exemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.P) && _mainSceneManager.IsActive() && _level < maxLevel && _life > 0 && !_mainSceneManager.IsTutorial())
     {
         _level++;
         _audioSources[0].time = 0.0f;
         _audioSources[0].Play();
         _canvasMain.DrawLevelWithFlicker(_level);
     }
 }