Exemplo n.º 1
0
    public void SetCurLevel(int depth)
    {
        if (!InRange(depth))
        {
            return;
        }
        Destroy(Level);
        Level level;

        GetLevel(depth, out level);
        level.ToLog(Logs.Main, "Setting level to");
        CurLevelDepth = depth;
        Deploy(level);
        Level = level;
        Level.PlacePlayer(true);
        BigBoss.DungeonMaster.PopulateLevel(Level);
        Builder.Combine();
    }