public void Play() { if (hapticClip != null) { hapticClip.Play(); } }
void Check() { if (button == null) { return; } if (text == null) { text = button.GetComponentInChildren <Text>(); } if (text == null) { return; } var hosts = BhapticsAndroidManager.GetStreamingHosts(); string s = ""; foreach (var streamHost in hosts) { s += " {" + streamHost.ip + ", " + streamHost.connected + "}\n "; } if (BhapticsAndroidManager.IsStreaming()) { text.text = "Stream: On \n" + s; } else { text.text = "Stream: Off \n" + s; } if (clip != null) { clip.Play(); } }