public void DrawLevel() { d = new Dungeon (); var p = new Map (d, rng, levels[level]); p.buildMap (); d.RenderAll (); GameObject.FindGameObjectWithTag ("Player").transform.position = d.Scaled(new Vector3(2f, 20f, 2f)); }
// Use this for initialization void Start() { d = new Dungeon (); var f = new RoomBrushFactory (); var rng = new System.Random (seed); Brush h = f.createRoomBrush (rng); d.Place (new Position(0, 0, 1), h); d.Place (new Position(1, 0, 0), h); d.Place (new Position(1, 1, 0), h); d.Place (new Position(1, 1, 1), h); d.Place (new Position(0, 1, 0), h); d.Place (new Position(0, 1, 1), h); d.RenderAll (); }