ソースを参照

修改上升逻辑

WGL 3 ヶ月 前
コミット
d2203f508c

+ 50 - 6
ActionTowerDefense/Assets/Resources/Prefab/Enemy/Enemy_1014.prefab

@@ -115,7 +115,7 @@ MonoBehaviour:
       force: 0
       time: 0
       haveLandingDamage: 0
-      landingDamage: 0
+      landingDamageRate: 0
       ControlOrder: 0
     shotDown:
       directionType: 0
@@ -240,7 +240,7 @@ MonoBehaviour:
       force: 0
       time: 0
       haveLandingDamage: 0
-      landingDamage: 0
+      landingDamageRate: 0
       ControlOrder: 0
     shotDown:
       directionType: 0
@@ -279,6 +279,47 @@ MonoBehaviour:
   m_Name: 
   m_EditorClassIdentifier: 
   curSpecialStates: -1
+  attackInfo:
+    attackValue: 0
+    damage: 0
+    attackDir: {x: 0, y: 0, z: 0}
+    attackEffect: 
+    floatState:
+      time: 0
+      upTime: {x: 0, y: 0}
+      backSpeed: {x: 0, y: 0}
+      rotateSpeed: {x: 0, y: 0}
+      height: {x: 0, y: 0}
+      ControlOrder: 0
+    blowUp:
+      directionType: 0
+      dir: {x: 0, y: 0, z: 0}
+      force: 0
+      time: 0
+      haveLandingDamage: 0
+      landingDamageRate: 0
+      ControlOrder: 0
+    shotDown:
+      directionType: 0
+      dir: {x: 0, y: 0, z: 0}
+      force: 0
+      time: 0
+      haveLandingDamage: 0
+      landingDamage: 0
+      ControlOrder: 0
+    weak:
+      time: 0
+      ControlOrder: 0
+    armorPiercing:
+      rate: 0
+    vulnerable:
+      rate: 0
+      time: 0
+    changeDamage:
+      rate: 0
+    sustainedInjury:
+      damage: 0
+    isDemSummon: 0
   attributeTime: 0
   floatingState: 0
   hitState: 0
@@ -467,6 +508,7 @@ MeshRenderer:
   m_RendererPriority: 0
   m_Materials:
   - {fileID: 2100000, guid: 5593775b4c6e75f4890fefc0df07f5b9, type: 2}
+  - {fileID: 2100000, guid: cd83f82aa01ea144fae3d29d40a9504c, type: 2}
   m_StaticBatchInfo:
     firstSubMesh: 0
     subMeshCount: 0
@@ -1258,7 +1300,7 @@ MonoBehaviour:
   flyHeight: 0
   maxFlyHeight: 0
   minFlyHeight: 0
-  flyUpTime: 0.751
+  flyUpTime: 0.1
   isAdjustHeight: 0
   isDamageReduction: 0
   reductionDegree: 0
@@ -1381,7 +1423,7 @@ MonoBehaviour:
       force: 0
       time: 0
       haveLandingDamage: 0
-      landingDamage: 0
+      landingDamageRate: 0
       ControlOrder: 0
     shotDown:
       directionType: 0
@@ -1440,7 +1482,7 @@ MonoBehaviour:
         force: 0
         time: 0
         haveLandingDamage: 0
-        landingDamage: 0
+        landingDamageRate: 0
         ControlOrder: 0
       shotDown:
         directionType: 0
@@ -1468,6 +1510,7 @@ MonoBehaviour:
     maxAttackDis: 0
     minAttackDis: 0
     needToChange: 0
+    searchMode: 0
     targetTypes: 010000000200000003000000
     canHitFly: 1
     armorPiercing: 0
@@ -1503,7 +1546,7 @@ MonoBehaviour:
         force: 0
         time: 0
         haveLandingDamage: 0
-        landingDamage: 0
+        landingDamageRate: 0
         ControlOrder: 0
       shotDown:
         directionType: 0
@@ -1531,6 +1574,7 @@ MonoBehaviour:
     maxAttackDis: 0
     minAttackDis: 0
     needToChange: 0
+    searchMode: 0
     targetTypes: 
     canHitFly: 0
     armorPiercing: 0

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

@@ -346,14 +346,14 @@ public class MoveCharacter : Character
             if (transform.position.y - flyHeight > 0.1f)
             {
                 Vector3 pos = transform.position;
-                pos.y = Mathf.SmoothDamp(pos.y, flyHeight+0.3f, ref refspeed, flyUpTime);
+                pos.y = Mathf.Lerp(pos.y, flyHeight, flyUpTime);
                 transform.position = pos;
                 return false;
             }
             else if (transform.position.y - flyHeight < -0.1f)
             {
                 Vector3 pos = transform.position;
-                pos.y = Mathf.SmoothDamp(pos.y, flyHeight+0.3f, ref refspeed, flyUpTime);
+                pos.y = Mathf.Lerp(pos.y, flyHeight, flyUpTime);
                 transform.position = pos;
                 return false;
             }