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

修改变身后不能跳跃问题

SZAND\msx_2 1 жил өмнө
parent
commit
80ce50b567

+ 3 - 1
ActionTowerDefense/Assets/Resources/Prefab/Player.prefab

@@ -872,7 +872,7 @@ MonoBehaviour:
   - {fileID: 2437299196472462361, guid: 00861cbb6651ced4a85013d35a07b3e6, type: 3}
   - {fileID: 5440846222648032759, guid: 1d487061d2e4ceb409a42daadf985eec, type: 3}
   - {fileID: 2437299196472462361, guid: 0e7e5e45ddc25b641963c78f68b041b8, type: 3}
-  changeTime: 20
+  changeTime: 5
   demonicPrefabs:
   - {fileID: 8639832132491289359, guid: 4c2987691cdb47040b3a55ff928803c3, type: 3}
   - {fileID: 5440846222648032759, guid: 05825e721b2832f478f66e78daed901f, type: 3}
@@ -927,6 +927,7 @@ MonoBehaviour:
   lostMp: 0
   soul: {fileID: 1723151111827507807, guid: e2b65aa482f2f1447a4074208d72b778, type: 3}
   soulCollector: {fileID: 3739918129319493242}
+  isTransfiguration: 0
   isinputJ: 0
   isinputK: 0
   isinputL: 0
@@ -1654,6 +1655,7 @@ MonoBehaviour:
   repelValue: 0
   spiritsAttackEffect: {fileID: 0}
   offsetY: 1
+  hitRate: 1
 --- !u!1 &9046555753133816952
 GameObject:
   m_ObjectHideFlags: 0

+ 2 - 3
ActionTowerDefense/Assets/Scripts/PlayerController.cs

@@ -1441,13 +1441,12 @@ public class PlayerController : MoveCharacter
         }
         */
         endChange = id + 3;
-        CheckPlayerChangeState();
+        ChangeState(CharacterState.Idle);
     }
 
     public void EndTransfiguration(int id)
     {
-        rb.constraints = RigidbodyConstraints.FreezeRotation | RigidbodyConstraints.FreezePositionZ;
-        isTransfiguration = false;
+        canfly = false;
         mecanim = playerMe;
         ani = playerAni;
         aniCollider = playerCol;