ソースを参照

初始化点位置调整

slambb 11 ヶ月 前
コミット
27b9f7363e

+ 0 - 9
Assets/BowArrow/InfraredCamera/InfraredDemo.cs

@@ -745,15 +745,6 @@ public class InfraredDemo : JCUnityLib.ViewBase
         _duckLevelDropdown.SetValueWithoutNotify(defLevel);
         _duckLevelDropdown.onValueChanged.AddListener(SetDuckLevelTest);
 
-
-        if (!hasCalled)
-        {
-            hasCalled = true;
-            //如果本地有记录,初始化一次算法坐标值
-            StartCoroutine(initScreenLocateManual());
-            Debug.Log("[InfraredDemo] SetVisiable Function!");
-        }
-
     }
 
 

+ 3 - 0
Assets/InfraredProject/WebCamera/Script/ZIM/ScreenLocate.cs

@@ -443,6 +443,9 @@ public partial class ScreenLocate : MonoBehaviour
             Debug.Log("[ScreenLocate] 初始化屏幕识别");
             //screenIdentification.OnLocateScreenEnter += OnLocateScreenEnter;
             screenIdentification.OnLocateScreenEnd += OnLocateScreenEnd;
+
+            //初始化屏幕数据
+            InfraredCameraHelper.InitScreenLocateManual();
         }
         if (infraredLocate == null)
         {