public Maze Construct() { _mazeBuilder.SetOptions(_options); _mazeBuilder.BuildRoom(); _mazeBuilder.BuildAisle(); _mazeBuilder.ShortenRoom(0.5f); _mazeBuilder.Decoration(); _mazeBuilder.OverrideAttribute(); return(_mazeBuilder.Build()); }
private async UniTask <Maze> ConstructInternal() { _builder.SetOptions(_options); await ButtonClickAsync("Build Room"); _builder.BuildRoom(); await ButtonClickAsync("Build Aisle"); _builder.BuildAisle(); await ButtonClickAsync("Shorten Room"); _builder.ShortenRoom(0); await ButtonClickAsync("Decoration"); _builder.Decoration(); await ButtonClickAsync("Apply Changes!"); return(_builder.Build()); }