//public void HighLight public void Dig(SoilBlock Soil) { //SoilBlock soil = grid.GetBuildingAt(CellLocation) as SoilBlock; if (Soil == null) { return; } if (Soil.Cost <= SessionData.Data.ResourceStorage.Money) { SessionData.Data.ResourceStorage.SpendMoney(Soil.Cost); BuildingInProcess newProcess = new BuildingInProcess(null, "Clearing place", 5); GridComponent.grid.ReplaceBuilding(Soil, newProcess); Kanban.Board.BuildingProcessStarted("Clearing place", newProcess); PlayerController.MainController.SetBuildingControlMode(newProcess); } else { PlayerController.MainController.ShowMessage("You don't have enought money"); } }
public void SetProcess(BuildingInProcess process) { this.process = process; Show(); Refresh(); }