public void ToggleTorch(bool on) { if (on) { torchWidget.ShowHighlight(); } else { torchWidget.Reset(); } }
public void ToggleFlashlight(bool on) { if (on) { flashLightWidget.ShowHighlight(); } else { flashLightWidget.Reset(); } }
private void InitializeTorchAndFlashlight() { var torch = GetElement("Torch"); if (torch != null) { torchWidget = new BlockWindow(torch, "Normal", "Highlight"); torchWidget.Reset(); } var flashLight = GetElement("Flashlight"); if (flashLight != null) { flashLightWidget = new BlockWindow(flashLight, "Normal", "Highlight"); flashLightWidget.Reset(); } }