Пример #1
0
 public void SetHaveControl(bool hasControl)
 {
     HaveControl = hasControl;
     Deactivate();
     OnControlsChanged?.Invoke(hasControl, _commandName);//Red = Lost Control, White = Not in use, Green = Active (not implemented yet)
 }
Пример #2
0
 public static void ControlsChanged(bool state)
 {
     OnControlsChanged?.Invoke(state);
 }