Ejemplo n.º 1
0
        void Update()
        {
            if (activeSpawner.allWavesDestroyed)
            {
                GameControl.instance.player.LevelProgress = 100;
                timer.StopTimer();
            }
            if (AlienShooter.GameControl.instance.player.LevelProgress >= 100 && !gameOverLoaded)
            {
                gameOverLoaded = true;
                StartCoroutine(EndLevel());
            }
            timer.UpdateTimer();
//			GameControl.instance.player.LevelTime = timer.ToString();
            GameControl.instance.player.LevelTimeMilliseconds = timer.millisecondsPassed;
        }