Quellcode durchsuchen

修复刺客的召唤攻击在原地冲刺问题

LAPTOP-OM1V99U2\永远de小亡灵 vor 1 Jahr
Ursprung
Commit
6997a23579

+ 5 - 2
ActionTowerDefense/Assets/Resources/Prefab/MySpirit/Spirits_Assassin.prefab

@@ -205,7 +205,7 @@ MonoBehaviour:
   m_PrefabInstance: {fileID: 0}
   m_PrefabAsset: {fileID: 0}
   m_GameObject: {fileID: 2437299196472462361}
-  m_Enabled: 1
+  m_Enabled: 0
   m_EditorHideFlags: 0
   m_Script: {fileID: 11500000, guid: c1bedfb340186164dbac1499b49b879e, type: 3}
   m_Name: 
@@ -265,7 +265,9 @@ MonoBehaviour:
   joint: {fileID: 0}
   rope: {fileID: 0}
   beLarger: 0
+  toLargeSize: 0
   cookEffect: {fileID: 0}
+  attack1ShootCanTransmit: 0
   matState: 1
   spinee: {fileID: 0}
   mesh: {fileID: 0}
@@ -887,6 +889,7 @@ MonoBehaviour:
   m_EditorClassIdentifier: 
   canHit: 1
   isEnemy: 0
+  isBoss: 0
   attackInfo:
     damage: 0
     attackDir: {x: 0, y: 0, z: 0}
@@ -894,10 +897,10 @@ MonoBehaviour:
     changeHurt: 0
     repelValue: 0
   beHitTriggers: []
-  offset: 2
   rushEffect: {fileID: 7473170563405908938, guid: 8ad3c225050205945b10657aa300afd6, type: 3}
   targetY: 1
   aim: {fileID: 8203964573996106666}
+  offset: 2
 --- !u!54 &8257178686841521685
 Rigidbody:
   m_ObjectHideFlags: 0

+ 1 - 1
ActionTowerDefense/Assets/Scripts/Spirits/Spirits_Dash.cs

@@ -25,6 +25,7 @@ public class Spirits_Dash : MonoBehaviour
                 DashAttackEffect();
                 dashEffect.canHit = false;
                 demonic.ChangeState(CharacterState.Fall);
+                demonic.enabled = true;
                 this.enabled = false;
 
             }
@@ -37,7 +38,6 @@ public class Spirits_Dash : MonoBehaviour
     void DashAttackEffect()
     {
         rb.velocity = Vector3.zero;
-        
     }
     private void Dash()
     {