Browse Source

修改运维指导的逻辑

胡佳骏 1 year ago
parent
commit
e98e4e53e7
2 changed files with 111 additions and 1 deletions
  1. 104 0
      Assets/ShowZhidao.prefab
  2. 7 1
      Assets/YunWeiZhiDao.cs

+ 104 - 0
Assets/ShowZhidao.prefab

@@ -5774,6 +5774,9 @@ GameObject:
   m_Component:
   - component: {fileID: 7399956817925578183}
   - component: {fileID: 7399956817925578181}
+  - component: {fileID: 9186147306337945702}
+  - component: {fileID: 8545679162704418647}
+  - component: {fileID: 5774347692232564887}
   m_Layer: 0
   m_Name: donghua (1)
   m_TagString: Untagged
@@ -5822,6 +5825,107 @@ MonoBehaviour:
   m_Name: 
   m_EditorClassIdentifier: 
   startDonghua: {fileID: 8708968953890604102}
+--- !u!65 &9186147306337945702
+BoxCollider:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 7399956817925578185}
+  m_Material: {fileID: 0}
+  m_IsTrigger: 0
+  m_Enabled: 1
+  serializedVersion: 2
+  m_Size: {x: 0.6818365, y: 0.098190494, z: 0.7017509}
+  m_Center: {x: -0.025631154, y: 0.28298634, z: 0.21077003}
+--- !u!114 &8545679162704418647
+MonoBehaviour:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 7399956817925578185}
+  m_Enabled: 1
+  m_EditorHideFlags: 0
+  m_Script: {fileID: 11500000, guid: 0dbccc4d71ae5b447bab3997600fbdce, type: 3}
+  m_Name: 
+  m_EditorClassIdentifier: 
+  PointerEnter:
+    m_PersistentCalls:
+      m_Calls: []
+  PointerDown:
+    m_PersistentCalls:
+      m_Calls: []
+  PointerClick:
+    m_PersistentCalls:
+      m_Calls: []
+  PointerUp:
+    m_PersistentCalls:
+      m_Calls: []
+  PointerExit:
+    m_PersistentCalls:
+      m_Calls: []
+  PointerDrag:
+    m_PersistentCalls:
+      m_Calls: []
+  Target: {fileID: 0}
+  StartAudio: 6
+  EndAudio: 5
+  headRotate: 0
+  oneGameControllerRotate: 0
+  canOneHandRotate: 0
+  canTwoHandRotate: 0
+  canTwoHandScale: 0
+  minScaleRatio: 0.8
+  maxScaleRatio: 3
+  isParentDrag: 0
+--- !u!114 &5774347692232564887
+MonoBehaviour:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 7399956817925578185}
+  m_Enabled: 1
+  m_EditorHideFlags: 0
+  m_Script: {fileID: 11500000, guid: 761d3c9fbe9f13f47818f9c59cd6aa03, type: 3}
+  m_Name: 
+  m_EditorClassIdentifier: 
+  activation: 1
+  flattenAxis: 0
+  activeHandle: 2
+  m_HandlerAssets: {fileID: 0}
+  activeScaleMinRestrict: 1
+  scaleMinimum: 0.05
+  activeScaleMaxRestrict: 0
+  scaleMaximum: 2
+  BoundBoxCollider: {fileID: 0}
+  showRotationHandleForX: 0
+  showRotationHandleForY: 1
+  showRotationHandleForZ: 0
+  activeAxis: -2
+  RotateStartAudio: 4
+  RotateStopAudio: 3
+  ScaleStartAudio: 4
+  ScaleStopAudio: 3
+  RotateStarted:
+    m_PersistentCalls:
+      m_Calls: []
+  RotateStopped:
+    m_PersistentCalls:
+      m_Calls: []
+  ScaleStarted:
+    m_PersistentCalls:
+      m_Calls: []
+  ScaleStopped:
+    m_PersistentCalls:
+      m_Calls: []
+  Rotating:
+    m_PersistentCalls:
+      m_Calls: []
+  Scaling:
+    m_PersistentCalls:
+      m_Calls: []
 --- !u!1 &7399956818130932457
 GameObject:
   m_ObjectHideFlags: 0

+ 7 - 1
Assets/YunWeiZhiDao.cs

@@ -16,6 +16,9 @@ public class YunWeiZhiDao : AbstractController
     public int count;
     public GameObject resetGo;
     public UnityEvent OnReset = new UnityEvent(); // ÖØÖÃʼþ
+
+    Vector3 initPV3 = new Vector3(57f, -148f, -346f);
+    Vector3 initEV3 = new Vector3(0, -21.11f, 0);
     public void nextTask()
     {
 
@@ -40,7 +43,7 @@ public class YunWeiZhiDao : AbstractController
         //if (Test) return;
         return;
 #endif
-       // OnReset?.Invoke();
+      OnReset?.Invoke();
     }
     private void OnEnable()
     {
@@ -62,5 +65,8 @@ public class YunWeiZhiDao : AbstractController
         TimerMgr.Instance.CreateTimer(() => {
             donghua.SetActive(true);
         }, 0.1f);
+
+        donghua.transform.localPosition = initPV3;
+        donghua.transform.localEulerAngles = initEV3;
     }
 }