Beispiel #1
0
 public void Update()
 {
     try
     {
         if (SettingPanelController != null)
         {
             if (SettingPanelController.GetModelSelected() == name)
             {
                 ProcessPosition();
             }
         }
         //处理存入的数据
         if (ConnectionUUID != "/")
         {
             if (Globle.WSClients.ContainsKey(ConnectionUUID))
             {
                 ConnectionResult = Globle.WSClients[ConnectionUUID].result;
                 if (ConnectionResult != null)
                 {
                     DoJsonPrase(ConnectionResult);
                 }
             }
         }
     }
     catch (Exception err)
     {
         Globle.DataLog = Globle.DataLog + "模型发生错误 " + err.Message + " : " + err.StackTrace;
     }
 }
 public void Update()
 {
     try
     {
         if (SettingPanelController != null)
         {
             if (SettingPanelController.GetModelSelected() == GetComponent <CubismModel>().name)
             {
                 ProcessPosition();
             }
         }
         //处理存入的数据
         if (ConnectionUUID != "/")
         {
             if (Globle.WSClients.ContainsKey(ConnectionUUID))
             {
                 ConnectionResult = Globle.WSClients[ConnectionUUID].result;
                 if (ConnectionResult != null)
                 {
                     DoJsonPrase(ConnectionResult);
                 }
             }
         }
         //更新模型位置
         ProcessModelParameter();
         //更新键盘位置
         if (KeyboardBind)
         {
             ProcesskeyboardParameter();
         }
     }
     catch (Exception err)
     {
         Globle.DataLog = Globle.DataLog + "模型发生错误 " + err.Message + " : " + err.StackTrace;
     }
 }