浏览代码

1.修改ui和添加打印日志

slambb 11 月之前
父节点
当前提交
569432f1c3

文件差异内容过多而无法显示
+ 241 - 582
Assets/BowArrow/Resources/Textures/GameIcon/Prefabs/Views/Home/HomeView.prefab


+ 1 - 0
Assets/BowArrow/Scripts/ArrowSerialPort.cs

@@ -162,6 +162,7 @@ public class ArrowSerialPort : MonoBehaviour
             //0x02 ARTEMIS Pro
             //0x03 Pistol 1
             var deviceType = bytes[3];//设备类型
+            Debug.Log("设备类型 Device Type: " + deviceType);
             switch (deviceType)
             {
                 case 0x01:

+ 8 - 0
Assets/BowArrow/Scripts/View/BScript.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 78a7ac77861d09746bdf61e60a5caf2d
+folderAsset: yes
+DefaultImporter:
+  externalObjects: {}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 31 - 0
Assets/BowArrow/Scripts/View/BScript/LayoutManager.cs

@@ -0,0 +1,31 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class LayoutManager : MonoBehaviour
+{
+    public GameObject layout2;
+    void Start()
+    {
+        
+    }
+
+    // Update is called once per frame
+    void Update()
+    {
+        if (GlobalData.MyDeviceMode == DeviceMode.Gun)
+        {
+            if (layout2.activeSelf)
+            {
+                layout2.SetActive(false);
+            }
+        }
+        else 
+        {
+            if (!layout2.activeSelf)
+            {
+                layout2.SetActive(true);
+            }
+        }
+    }
+}

+ 11 - 0
Assets/BowArrow/Scripts/View/BScript/LayoutManager.cs.meta

@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 1c789996f0262c045b1a66c84175e151
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

部分文件因为文件数量过多而无法显示