void Update() { if (!SuccessInit) { return; } text.text = string.Format("{0}", HiperUSB.ReadPos()); }
void Start() { text = gameObject.GetComponent <Text>(); try { HiperUSB.Init(); } catch (Exception e) { text.text = e.Message; return; } SuccessInit = true; }
void OnApplicationQuit() { HiperUSB.Cleanup(); }