コード例 #1
0
 public void RegisterPoweredLight(PoweredLight light)
 {
     _poweredLights.Add(light);
     if (light.IsEmergencyLight)
     {
         light.SetLit(!HasPower, immediately: true);
     }
     else
     {
         light.SetLit(HasPower, immediately: true);
     }
 }