Exemple #1
0
    void Spawn(float x, float y, string conexions, RoomCreator.RoomType type)
    {
        Vector2 spawnPos = new Vector2(x, y);

        RoomCreator.Conexions nameEnum = (RoomCreator.Conexions)Enum.Parse(typeof(RoomCreator.Conexions), conexions);
        Room room = roomScript.SetupRoom(nameEnum, spawnPos, type, boss);

        room.SetEnemies(enemiesPrefabs, turretsPrefabs);
        rooms.Add(spawnPos, room);
    }