示例#1
0
    public void Cleanup(bool destroyLevel = true)
    {
        PowerupManager.ResetPowerups();
        PowerupManager.ResetState();

        if (PowerupManager.IsTeleportActive)
        {
            PowerupManager.DectivateTeleport();
        }

        boardInstance.QueueFree();
        if (destroyLevel)
        {
            levelInstance.Free();
        }
        FreeGroups(new string[] { "BALLS", "POWERUPS", "BLASTS", "ENEMIES" });
        enemiesManager.DisableSpawning();
    }