示例#1
0
    public void Paint()
    {
        foreach (var room in Rooms)
        {
            room.Paint(this);
            room.PaintDoors(this);
            room.Decorate(this);
        }
        var stairsLoc = Exit.StairsLocation;

        if (stairsLoc != null)
        {
            Decorations.SetTile(new Vector3Int(stairsLoc.Value.x, stairsLoc.Value.y, 0), Painter.LadderDown);
        }
        else
        {
            Debug.LogError("Exit doesn't have valid space for stairs down. This is very bad");
        }
    }