Эх сурвалжийг харах

修改变身后法师能跳跃的bug

SZAND\msx_2 1 жил өмнө
parent
commit
21a953ebb2

+ 3 - 1
ActionTowerDefense/Assets/Resources/Prefab/Transfiguration/Trans_Float.prefab

@@ -967,6 +967,7 @@ MonoBehaviour:
   m_Script: {fileID: 11500000, guid: b660f3489782e504b85f8fb950580491, type: 3}
   m_Name: 
   m_EditorClassIdentifier: 
+  controller: {fileID: 0}
 --- !u!114 &3290368322717680010
 MonoBehaviour:
   m_ObjectHideFlags: 0
@@ -974,7 +975,7 @@ MonoBehaviour:
   m_PrefabInstance: {fileID: 0}
   m_PrefabAsset: {fileID: 0}
   m_GameObject: {fileID: 8639832132491289359}
-  m_Enabled: 1
+  m_Enabled: 0
   m_EditorHideFlags: 0
   m_Script: {fileID: 11500000, guid: e4ee37ae96a7315419ecbfe1bb3c43e9, type: 3}
   m_Name: 
@@ -1100,6 +1101,7 @@ MonoBehaviour:
   playerMesh: {fileID: 0}
   playerMats: []
   playerOut: []
+  isInvisible: 0
   id: 0
   costMp: 1
   totalSummonTime: 0.5

+ 6 - 0
ActionTowerDefense/Assets/Scripts/PlayerController.cs

@@ -346,6 +346,10 @@ public class PlayerController : MoveCharacter
                 pastChangeTime = 0;
             }
         }
+        if (isTransfiguration)
+        {
+            bodyTrans.position = spiritObj.transform.position;
+        }
     }
 
 
@@ -1426,6 +1430,7 @@ public class PlayerController : MoveCharacter
         if (dem.canFly)
         {
             canfly = true;
+            canJump = false;
         }
         /*  ·¨Ê¦³ö³¡ÊͷŸ¡¿Õ³¡
         if (id == 3)
@@ -1448,6 +1453,7 @@ public class PlayerController : MoveCharacter
     {
         isTransfiguration = false;
         canfly = false;
+        canJump = true;
         mecanim = playerMe;
         ani = playerAni;
         aniCollider = playerCol;