lvjincheng 3 роки тому
батько
коміт
6886f0c35a
1 змінених файлів з 1 додано та 4 видалено
  1. 1 4
      Assets/BowArrow/Scripts/Bluetooth/New/Axis9Handler.cs

+ 1 - 4
Assets/BowArrow/Scripts/Bluetooth/New/Axis9Handler.cs

@@ -2,7 +2,6 @@ using System;
 using UnityEngine;
 using UnityEngine;
 using System.Collections;
 using System.Collections;
 using Newtonsoft.Json;
 using Newtonsoft.Json;
-using o0;
 using System.Reflection;
 using System.Reflection;
 
 
 public class Axis9Handler : AxisBaseHandler
 public class Axis9Handler : AxisBaseHandler
@@ -84,9 +83,7 @@ public class Axis9Handler : AxisBaseHandler
     }
     }
 
 
     public override bool IsGyrCompleted() {
     public override bool IsGyrCompleted() {
-        FieldInfo fieldInfo = _9Axis.Attitude.GetType().GetField("GyrCalibrater", BindingFlags.Instance | BindingFlags.NonPublic);
-        var mm = fieldInfo.GetValue(_9Axis.Attitude) as MeanMaintainer<o0.Geometry.Vector<double>>;
-        return mm.Count > 0;
+        return _9Axis.Attitude.GyrCalibrater.Count > 0;
     }
     }
 
 
     public override bool IsMagCompleted() {
     public override bool IsMagCompleted() {