public override void PlacementSucceeded() { if (this.m_waterConsumption != 0) { BuildingTypeGuide drainPipeMissingGuide = Singleton <WaterManager> .instance.m_drainPipeMissingGuide; if (drainPipeMissingGuide != null) { drainPipeMissingGuide.Deactivate(); } } //if (this.m_sewageOutlet != 0) //{ // BuildingTypeGuide drainPipeMissingGuide = Singleton<WaterManager>.instance.m_drainPipeMissingGuide; // if (drainPipeMissingGuide != null) // { // drainPipeMissingGuide.Deactivate(); // } //} }
public override void UpdateGuide(GuideController guideController) { if (this.m_waterConsumption != 0) { BuildingTypeGuide waterPumpMissingGuide = Singleton <WaterManager> .instance.m_waterPumpMissingGuide; if (waterPumpMissingGuide != null) { int waterCapacity = Singleton <DistrictManager> .instance.m_districts.m_buffer[0].GetWaterCapacity(); int sewageCapacity = Singleton <DistrictManager> .instance.m_districts.m_buffer[0].GetSewageCapacity(); if (waterCapacity == 0 && sewageCapacity != 0) { waterPumpMissingGuide.Activate(guideController.m_waterPumpMissing, this.m_info); } else { waterPumpMissingGuide.Deactivate(); } } } base.UpdateGuide(guideController); }