Browse Source

盔甲武士击飞玩家效果修复

1243896040 1 week ago
parent
commit
0da0fe1284

+ 3 - 3
ActionTowerDefense/Assets/Resources/Prefab/ESpirits/ESpirits_ArmoredSamurai.prefab

@@ -77,8 +77,8 @@ BoxCollider:
   m_IsTrigger: 1
   m_Enabled: 1
   serializedVersion: 2
-  m_Size: {x: 2.0996065, y: 4.0983477, z: 2}
-  m_Center: {x: -2.3598015, y: 1.954174, z: 0}
+  m_Size: {x: 7.131954, y: 4.6974363, z: 2}
+  m_Center: {x: -1.0178418, y: 2.2537184, z: 0}
 --- !u!114 &7729941002223262554
 MonoBehaviour:
   m_ObjectHideFlags: 0
@@ -1039,7 +1039,7 @@ MonoBehaviour:
   dropSoulMin: 5
   dropProbability: 100
   dropSoulAngle: 90
-  minDashTime: 1
+  minDashTime: 0.5
   time: 0
 --- !u!1 &6139679835290116115
 GameObject:

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

@@ -6666,7 +6666,7 @@ MonoBehaviour:
   hitState: 0
   isFly: 0
   jumpNum: 0
-  jumpNumRate: 0.8
+  jumpNumRate: 0.9
   decelerationRatioX: 2
   decelerationRatioY: 15
   landingDamageFrom: {fileID: 0}

+ 6 - 2
ActionTowerDefense/Assets/Scripts/Characters/AttributeStatus.cs

@@ -359,14 +359,18 @@ public class AttributeStatus : MonoBehaviour
                                 character.ani.Play(AnimatorHash.ANIMATOR_weak, 0, 0);
                                 character.bodyCollider.layer = character.gameObject.layer;
                                 hitState = 1;
+                                BounceEffect();
                             }
                             else
                             {
                                 flyForce *= jumpNumRate;
+                                rb.velocity = Vector3.zero;
+                                startFlyPos = transform.position;
                                 rb.AddForce(flyForce, ForceMode.Impulse);
-                                
+                                isFly = false;
+                                return;
                             }
-                            BounceEffect();
+                            
                         }
                         else
                         {