Esempio n. 1
0
    public override void Logic()
    {
        base.Logic();

        player.Logic();
        asteroidManager.Logic();
        saucerManager.Logic();
        levelController.Logic();
        explosionManager.Logic();

        timeSinceLevelStarted += Time.deltaTime;

        if (timeWhenWaveFinished > 0 && timeSinceLevelStarted > timeWhenWaveFinished + WAIT_BETWEEN_WAVES)
        {
            FinishWave();
        }
    }