Exemplo n.º 1
0
    private void ResetLevel()
    {
        gameTimer += 10.0f + (2.0f * level);
        level++;

        GameObject[] items = GameObject.FindGameObjectsWithTag("Item");

        player.heldItem    = null;
        player.holdingItem = false;

        player.usingStation     = false;
        player.stationBeingUsed = null;

        foreach (GameObject item in items)
        {
            DestroyImmediate(item);
        }

        DestroyGatheringStations();
        ouroborosSystem.StartResetting();
        StartLevel();
    }