Esempio n. 1
0
 public BuildBuilding(Building building, BuildBuildingTask bb)
 {
     Nodes.Add(new CheckBuildingHasEnoughBuildingMaterials(bb));
     Nodes.Add(new FindPathToBuilding());
     Nodes.Add(new MovePath());
     Nodes.Add(new CheckBuildingHasEnoughBuildingMaterials(bb));
     Nodes.Add(new ConstructBuilding());
 }
 public CheckBuildingHasEnoughBuildingMaterials(BuildBuildingTask bb)
 {
     _bb = bb;
     Nodes.Add(new Action(new ActionDelegate(Check)));
 }