예제 #1
0
        public Maze Construct()
        {
            _mazeBuilder.SetOptions(_options);

            _mazeBuilder.BuildRoom();
            _mazeBuilder.BuildAisle();
            _mazeBuilder.ShortenRoom(0.5f);
            _mazeBuilder.Decoration();
            _mazeBuilder.OverrideAttribute();


            return(_mazeBuilder.Build());
        }
예제 #2
0
        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());
        }