فهرست منبع

修复胖子头顶平台在胖子转向后无效问题

WGL 3 ماه پیش
والد
کامیت
339fb2caf0

+ 14 - 1
ActionTowerDefense/Assets/Resources/Prefab/MySoldier/Demonic_Giant.prefab

@@ -581,7 +581,7 @@ MonoBehaviour:
   uiHp: {fileID: 478072938412589135}
   beHitTrigger: {fileID: 3377671071202039733}
   attackController: {fileID: 7709923136427189747}
-  platform: {fileID: 0}
+  platform: {fileID: 679011371747843264}
   mecanim: {fileID: 7573527827155227431}
   meshRenderer: {fileID: 0}
   ani: {fileID: 3333436509305836838}
@@ -1226,6 +1226,8 @@ MeshRenderer:
   m_Materials:
   - {fileID: 2100000, guid: 466a6130b6c56614caef9c2f5961b3a8, type: 2}
   - {fileID: 2100000, guid: dc7a2704fc39fb24997c9f6279033f5c, type: 2}
+  - {fileID: 2100000, guid: 466a6130b6c56614caef9c2f5961b3a8, type: 2}
+  - {fileID: 2100000, guid: dc7a2704fc39fb24997c9f6279033f5c, type: 2}
   m_StaticBatchInfo:
     firstSubMesh: 0
     subMeshCount: 0
@@ -1573,6 +1575,17 @@ PrefabInstance:
       objectReference: {fileID: 0}
     m_RemovedComponents: []
   m_SourcePrefab: {fileID: 100100000, guid: 12435a63399f44f4a919a57010981786, type: 3}
+--- !u!114 &679011371747843264 stripped
+MonoBehaviour:
+  m_CorrespondingSourceObject: {fileID: 4258677732850543250, guid: 12435a63399f44f4a919a57010981786, type: 3}
+  m_PrefabInstance: {fileID: 3635963917053146706}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 0}
+  m_Enabled: 1
+  m_EditorHideFlags: 0
+  m_Script: {fileID: 11500000, guid: e11ee644ccfe95b4ca9ed53d307729d5, type: 3}
+  m_Name: 
+  m_EditorClassIdentifier: 
 --- !u!4 &3591166586281610909 stripped
 Transform:
   m_CorrespondingSourceObject: {fileID: 262311660969425103, guid: 12435a63399f44f4a919a57010981786, type: 3}

+ 2 - 2
ActionTowerDefense/Assets/Scripts/Characters/Character.cs

@@ -177,8 +177,8 @@ public class Character : MonoBehaviour
         bodyTrans.localScale = new Vector3(-bodyTrans.localScale.x, bodyTrans.localScale.y, bodyTrans.localScale.z);
         if (platform != null)
         {
-            platform.transform.localPosition = new Vector3(-0.5f * -bodyTrans.localScale.x, 0, 0);
-            platform.transform.localPosition = new Vector3(0.5f * -bodyTrans.localScale.x, 0, 0);
+            platform.left.transform.localPosition = new Vector3(-0.5f * bodyTrans.localScale.x, 0, 0);
+            platform.right.transform.localPosition = new Vector3(0.5f * bodyTrans.localScale.x, 0, 0);
         }
     }