Esempio n. 1
0
    /*
     * Spawns player, trashmobs, Bosses, Treasure Chests, and prefabs.
     */
    private void SpawnObjects()
    {
        bossKillable = false;

        Space largestSpace = dfs.GetLargestSpace();

        playerSpawner.PlayerSpawn(player);         // Spawns player.

        // Holder Objects.

        // Parameters int fillPercent, Space largestSpace, GameObject[] things, GameObject player.

        // Spawn trashmobs
        spawner.SpawnThings(trashMobsFillPercent, largestSpace, trashMobs, player, TrashMobHolder);

        // Spawn chests
        spawner.SpawnThings(chestFillPercent, largestSpace, chests, player, ThingsHolder);

        // Spawn prefabs

        largestSpace.GetSouthernTile();


        spawner.SpawnThings(prefabsFillpercent, largestSpace, prefabs, player, ThingsHolder);

        spawner.SpawnThings(bossFillpercent, largestSpace, bosses, player, TrashMobHolder);
    }