示例#1
0
 protected void setRevealActivity(bool active)
 {
     if (MediumButton != null)
     {
         if (!active)
         {
             MediumButton.setState(Panel.PanelState.INACTIVE, false);
         }
         else if (MediumButton.getState() == Panel.PanelState.INACTIVE)
         {
             MediumButton.setState(Panel.PanelState.IDLE, false);
         }
     }
 }
示例#2
0
 protected void setLaserActivity(bool active)
 {
     if (LaserButton != null)
     {
         if (!active)
         {
             LaserButton.setState(Panel.PanelState.INACTIVE, false);
         }
         else if (LaserButton.getState() == Panel.PanelState.INACTIVE)
         {
             LaserButton.setState(Panel.PanelState.IDLE, false);
         }
     }
 }