Ejemplo n.º 1
0
    void Update()
    {
        if (spawning && (timeUntilNext <= 0 || BlockManager.CountActive() == 0))
        {
            timeUntilNext = gap;

            Spawn();
            // Debug
            //Spawn();
        }
        if (spawning)
        {
            timeUntilNext -= Time.deltaTime;
        }
    }