diff --git a/Assets/AddressableAssetsData/AddressableAssetSettings.asset b/Assets/AddressableAssetsData/AddressableAssetSettings.asset index 98757b0..10ca27b 100644 --- a/Assets/AddressableAssetsData/AddressableAssetSettings.asset +++ b/Assets/AddressableAssetsData/AddressableAssetSettings.asset @@ -124,4 +124,8 @@ MonoBehaviour: m_RegisteredServiceTypeRefs: [] m_GlobalProfileVariablesInfos: - key: PrivateIpAddress - value: 192.168.1.34 + value: 192.168.1.163 + - key: PrivateIpAddress_1 + value: 192.168.35.1 + - key: PrivateIpAddress_2 + value: 192.168.221.1 diff --git a/Assets/Scenes/MainScene.unity b/Assets/Scenes/MainScene.unity index 276fae7..c686218 100644 --- a/Assets/Scenes/MainScene.unity +++ b/Assets/Scenes/MainScene.unity @@ -251,7 +251,7 @@ PrefabInstance: - target: {fileID: 1265597271646066058, guid: aad59b329c27c57428a3ddbb1205a7ab, type: 3} propertyPath: m_RootOrder - value: 2 + value: 3 objectReference: {fileID: 0} - target: {fileID: 1265597271646066058, guid: aad59b329c27c57428a3ddbb1205a7ab, type: 3} @@ -622,6 +622,51 @@ Transform: m_Father: {fileID: 1133822276} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &831345132 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 831345133} + - component: {fileID: 831345134} + m_Layer: 0 + m_Name: DeviceCloneParent + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &831345133 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 831345132} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 5 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &831345134 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 831345132} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a574343a24c732d4b85cd8c6f01e2b2a, type: 3} + m_Name: + m_EditorClassIdentifier: + Point: {fileID: 3051062197270240133, guid: 81fb2d1d7b450ee4baea675cc8e594f6, type: 3} + NowPointList: [] --- !u!1 &974137406 GameObject: m_ObjectHideFlags: 0 @@ -1206,15 +1251,18 @@ MonoBehaviour: m_EditorClassIdentifier: DeviceBindPrefab: {fileID: 1265597271646066057, guid: 83b297e50f9738f4a89108f0556ab422, type: 3} - ShuiBengList: [] - ShuiXiangList: [] - XHSList: [] - PenLinBengList: [] - PaiYanJiList: [] - SongFengJiList: [] + textType: 0 BindObjectList: [] NowClickObject: {fileID: 0} NowType: 0 + CanClone: 0 + MenuType: 0 + layerMask: + serializedVersion: 2 + m_Bits: 4294967295 + CloneParent: {fileID: 831345133} + ClonePrefab: {fileID: 3051062197270240133, guid: 81fb2d1d7b450ee4baea675cc8e594f6, + type: 3} --- !u!222 &2140083325 CanvasRenderer: m_ObjectHideFlags: 0 diff --git a/Assets/Scripts/ANet/DeviceFollowTarget.cs b/Assets/Scripts/ANet/DeviceFollowTarget.cs new file mode 100644 index 0000000..849539d --- /dev/null +++ b/Assets/Scripts/ANet/DeviceFollowTarget.cs @@ -0,0 +1,51 @@ +using AX.MessageSystem; +using System; +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.UI; + +public class DeviceFollowTarget : MonoBehaviour +{ + public Transform target; + public Camera uiCamera; + private float offset_Y = 2.5f; + + private void Start() + { + GetComponent