/* TESTING * protected void Update() * { * if (Input.GetKeyDown(KeyCode.R)) * { * GenerateDungeon(); * } * * if (Input.GetKeyDown(KeyCode.T)) * { * mGrid.Init(kWidth, kHeight); * GenerateRooms(kSeed); * UpdateTileGraphics(); * } * * if (Input.GetKeyDown(KeyCode.Space)) * { * IncrementGeneration(openWalls); * UpdateTileGraphics(); * } * } */ public void GenerateDungeon(DungeonEnvironmentGenerationData data) { mGrid.Init(data.mTotalDimensions.mX, data.mTotalDimensions.mY); GenerateRooms(data); UpdateTileGraphics(); }