示例#1
0
 public void OnClick()
 {
     Debug.Log("AuthButtonClick");
     if (!oscIn.isOpen)
     {
         oscIn.Open(generalMagnager.PORT_OPERATOR, null);
     }
     _authDataText.text = "Authorizing...";
     stream             = authStream.Timeout(TimeSpan.FromSeconds(20)).Subscribe(
         x =>
     {
         CheckAuthMessage(x);
         Debug.Log("is receiving");
     },
         ex =>
     {
         Debug.Log("timeout");
         _authDataText.text = "Timeout";
     }).AddTo(this);
 }