From 4c012fd4b630328b7bd480ef7a0ffc80f7630101 Mon Sep 17 00:00:00 2001 From: huyulong <1838407198@qq.com> Date: Thu, 12 Dec 2024 15:48:41 +0800 Subject: [PATCH] =?UTF-8?q?Npc=E7=94=9F=E6=88=90=E5=92=8C=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E6=97=B6x=E5=8F=8D=E8=BD=AC=E7=9A=84=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xiaofang/Assets/ProtoBuf/test.cs | 4 ++-- xiaofang/Assets/Scenes/Tmap 1.unity | 32 +++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/xiaofang/Assets/ProtoBuf/test.cs b/xiaofang/Assets/ProtoBuf/test.cs index 3abf33d9..d8e077d3 100644 --- a/xiaofang/Assets/ProtoBuf/test.cs +++ b/xiaofang/Assets/ProtoBuf/test.cs @@ -489,7 +489,7 @@ public class test : MonoBehaviour Debug.Log(npcData); if(npcData.Type == 1)//npc´´½¨ { - float x = float.Parse(npcData.X.ToString()); + float x = -float.Parse(npcData.X.ToString()); float y = float.Parse(npcData.Y.ToString()); float z = float.Parse(npcData.Z.ToString()); trans.position = new Vector3(x, y, z); @@ -497,7 +497,7 @@ public class test : MonoBehaviour } if(npcData.Type == 2)//npcÒƶ¯ { - Vector3 v = new Vector3(float.Parse(npcData.X.ToString()), float.Parse(npcData.Y.ToString()), float.Parse(npcData.Z.ToString())); + Vector3 v = new Vector3(-float.Parse(npcData.X.ToString()), float.Parse(npcData.Y.ToString()), float.Parse(npcData.Z.ToString())); RecuseNpc.instance.SetNpcDes(v); } diff --git a/xiaofang/Assets/Scenes/Tmap 1.unity b/xiaofang/Assets/Scenes/Tmap 1.unity index b718256c..173bb267 100644 --- a/xiaofang/Assets/Scenes/Tmap 1.unity +++ b/xiaofang/Assets/Scenes/Tmap 1.unity @@ -10865,6 +10865,26 @@ PrefabInstance: propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} + - target: {fileID: -8346327141343803580, guid: eec919b17e074b747899fe01d7888a2c, type: 3} + propertyPath: m_Name + value: obj202 + objectReference: {fileID: 0} + - target: {fileID: -6327141709703751677, guid: eec919b17e074b747899fe01d7888a2c, type: 3} + propertyPath: m_Name + value: obj153 + objectReference: {fileID: 0} + - target: {fileID: -5894147750496127529, guid: eec919b17e074b747899fe01d7888a2c, type: 3} + propertyPath: m_Name + value: obj200 + objectReference: {fileID: 0} + - target: {fileID: -3477271395377431157, guid: eec919b17e074b747899fe01d7888a2c, type: 3} + propertyPath: m_Name + value: obj024 + objectReference: {fileID: 0} + - target: {fileID: -1788689016301746583, guid: eec919b17e074b747899fe01d7888a2c, type: 3} + propertyPath: m_Name + value: obj205 + objectReference: {fileID: 0} - target: {fileID: 919132149155446097, guid: eec919b17e074b747899fe01d7888a2c, type: 3} propertyPath: m_Name value: school03 @@ -10873,6 +10893,18 @@ PrefabInstance: propertyPath: m_IsActive value: 1 objectReference: {fileID: 0} + - target: {fileID: 2109942813294462661, guid: eec919b17e074b747899fe01d7888a2c, type: 3} + propertyPath: m_Name + value: obj204 + objectReference: {fileID: 0} + - target: {fileID: 4315024395822287230, guid: eec919b17e074b747899fe01d7888a2c, type: 3} + propertyPath: m_Name + value: obj198 + objectReference: {fileID: 0} + - target: {fileID: 8052244126148009048, guid: eec919b17e074b747899fe01d7888a2c, type: 3} + propertyPath: m_Name + value: obj122 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: eec919b17e074b747899fe01d7888a2c, type: 3} --- !u!1 &1124162635 stripped