Npc生成和移动时x反转的修复
This commit is contained in:
parent
82ab009094
commit
4c012fd4b6
@ -489,7 +489,7 @@ public class test : MonoBehaviour
|
|||||||
Debug.Log(npcData);
|
Debug.Log(npcData);
|
||||||
if(npcData.Type == 1)//npc´´½¨
|
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 y = float.Parse(npcData.Y.ToString());
|
||||||
float z = float.Parse(npcData.Z.ToString());
|
float z = float.Parse(npcData.Z.ToString());
|
||||||
trans.position = new Vector3(x, y, z);
|
trans.position = new Vector3(x, y, z);
|
||||||
@ -497,7 +497,7 @@ public class test : MonoBehaviour
|
|||||||
}
|
}
|
||||||
if(npcData.Type == 2)//npcÒƶ¯
|
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);
|
RecuseNpc.instance.SetNpcDes(v);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -10865,6 +10865,26 @@ PrefabInstance:
|
|||||||
propertyPath: m_LocalEulerAnglesHint.z
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 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}
|
- target: {fileID: 919132149155446097, guid: eec919b17e074b747899fe01d7888a2c, type: 3}
|
||||||
propertyPath: m_Name
|
propertyPath: m_Name
|
||||||
value: school03
|
value: school03
|
||||||
@ -10873,6 +10893,18 @@ PrefabInstance:
|
|||||||
propertyPath: m_IsActive
|
propertyPath: m_IsActive
|
||||||
value: 1
|
value: 1
|
||||||
objectReference: {fileID: 0}
|
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_RemovedComponents: []
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: eec919b17e074b747899fe01d7888a2c, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: eec919b17e074b747899fe01d7888a2c, type: 3}
|
||||||
--- !u!1 &1124162635 stripped
|
--- !u!1 &1124162635 stripped
|
||||||
|
Loading…
Reference in New Issue
Block a user