Beispiel #1
0
 private void ToggleShield(bool active)
 {
     if (shieldActive != active)
     {
         shieldActive = active;
         if (shieldActive)
         {
             lamp.ActivateShield();
         }
         else
         {
             lamp.DeactivateShield();
         }
     }
 }