Bläddra i källkod

调整蓝牙开始连接触发位置。添加调试摄像机参数存储

slambb 11 månader sedan
förälder
incheckning
e6a35764d9

+ 1 - 3
Assets/BowArrow/InfraredCamera/InfraredDemo.cs

@@ -407,6 +407,7 @@ public class InfraredDemo : JCUnityLib.ViewBase
                         textObj.text = _value + "";
                         //Debug.Log("Slider value changed to: " + newValue + " from " + _VALUE);
                         cameraInfo.SetValue(typeStr, _value);
+                        paramFloatValue.Set(_value);
 
                     });
                 }
@@ -739,9 +740,6 @@ public class InfraredDemo : JCUnityLib.ViewBase
         _duckLevelDropdown.SetValueWithoutNotify(defLevel);
         _duckLevelDropdown.onValueChanged.AddListener(SetDuckLevelTest);
 
-        //进行一次蓝牙连接
-        BluetoothAim.ins.HomeViewConnectBLE();
-
     }
 
 

+ 5 - 1
Assets/BowArrow/Scripts/View/Home/HomeView.cs

@@ -48,7 +48,7 @@ public class HomeView : JCUnityLib.ViewBase
         if (topBarView && challengeOption) topBarView.onChangeTypeEvent.AddListener(challengeOption.refreshList);
     }
 
-    void Start()
+    IEnumerator Start()
     {
         ins = this;
 
@@ -87,6 +87,10 @@ public class HomeView : JCUnityLib.ViewBase
         }
 
         //StartCoroutine(testTip());
+
+        yield return new WaitForSeconds(1.0f);
+        //进行一次蓝牙连接
+        BluetoothAim.ins.HomeViewConnectBLE();
     }
 
     IEnumerator testTip() {