public static void ShowImage(ui::Image image) { message_body.text = ""; message_title.text = ""; message_image = image; message_image.enabled = true; Pathways.GameState = GameStates.Msgs; Pathways.window.gameObject.SetActive(true); Pathways.window.StartCoroutine( Pathways.window.BeginDisplay(delay)); }
public void KonashiUARTSetup(UI.Toggle toggle) { if(toggle.isOn) { Log("Turn On UART"); KonashiPlugin.UartMode(KonashiUartMode.Enable,KonashiUartBaudrate.Rate9K6); } else { Log("Turn Off UART"); KonashiPlugin.UartMode(KonashiUartMode.Disable,KonashiUartBaudrate.Rate9K6); } }
public void KonashiLEDSlider4Changed(UI.Slider slider) { int level = (int)(slider.normalizedValue * 100); KonashiPlugin.PwmLedDrive(KonashiDigitalIOPin.DigitalIO4, level); }
public void KonashiUARTSend(UI.InputField input) { string text = input.text; if(!string.IsNullOrEmpty(text)) { KonashiPlugin.UartWriteString(text); LogF("Send UART - {0}", text); } }