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