Ejemplo n.º 1
0
 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);
 }