Browse Source

Merge branch 'F/20231018_Demo' of ssh://gogs.ghz-tech.com:30979/GHzGlass/GHZLangChao into F/20231018_Demo

DGJ 1 year ago
parent
commit
dc3ec5a936

+ 1 - 1
Assets/Game/ShowChoose/ShowChoose.prefab

@@ -1382,7 +1382,7 @@ MonoBehaviour:
   m_PrefabInstance: {fileID: 0}
   m_PrefabAsset: {fileID: 0}
   m_GameObject: {fileID: 3170659552365898910}
-  m_Enabled: 0
+  m_Enabled: 1
   m_EditorHideFlags: 0
   m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
   m_Name: 

+ 3 - 0
Assets/Game/ShowDevice/BasicDeviceControl.cs

@@ -88,6 +88,9 @@ namespace GHZLangChao
         #region  事件监听
         private void SetShowDeviceTransform(ShowDeviceEvent e)
         {
+            transform.position = e.ShowDeviceTransform.position;
+            transform.rotation = e.ShowDeviceTransform.rotation;
+            Debug.LogError($"position:{transform.position},rotation:{transform.rotation}");
             this.UnRegisterEvent<ShowDeviceEvent>(SetShowDeviceTransform);
         }
         #endregion