protected override void OnExecute()
        {
            var tasks = new List <Task>();

            for (var i = 0; i < RealSelectTileItems.Count; i++)
            {
                TileItem tileItem = RealSelectTileItems[i];
                tasks.Add(new Task {
                    Target = tileItem, Type = BuildingsInfo.CommandType
                });
            }
            WorkerManager.AddTask(tasks);
        }
        protected override void OnExecute()
        {
            var      tasks     = new List <Task>();
            TileItem tileItem  = RealSelectTileItems[0];
            var      buildItem = BuildingItemFactory.Create(BuildingsInfo, Map, tileItem.Position).AddComponent <RoomItem>();

            buildItem.BuildingsInfo = BuildingsInfo;
            tileItem.PreBuild(BuildCommandType.BuildRoom, buildItem, RealSelectTileItems);
            tasks.Add(new Task {
                Target = tileItem, Type = BuildingsInfo.CommandType
            });
            WorkerManager.AddTask(tasks);
        }
        protected override void OnExecute()
        {
            var tasks = new List <Task>();

            for (var i = 0; i < RealSelectTileItems.Count; i++)
            {
                TileItem tileItem  = RealSelectTileItems[i];
                var      buildItem = BuildingItemFactory.Create(BuildingsInfo, Map, tileItem.Position).AddComponent <DoorItem>();
                buildItem.BuildingsInfo = BuildingsInfo;
                tileItem.PreBuild(BuildCommandType.BuildDoor, buildItem);
                tasks.Add(new Task {
                    Target = tileItem, Type = BuildingsInfo.CommandType
                });
            }
            WorkerManager.AddTask(tasks);
        }