summaryrefslogtreecommitdiff
path: root/Assets/Scripts/AbilitySystem/Actions/ActionEffects
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Scripts/AbilitySystem/Actions/ActionEffects')
-rw-r--r--Assets/Scripts/AbilitySystem/Actions/ActionEffects/ActionDisableGhost.cs19
-rw-r--r--Assets/Scripts/AbilitySystem/Actions/ActionEffects/ActionDisableGhost.cs.meta11
-rw-r--r--Assets/Scripts/AbilitySystem/Actions/ActionEffects/ActionEffectGhost.cs9
3 files changed, 37 insertions, 2 deletions
diff --git a/Assets/Scripts/AbilitySystem/Actions/ActionEffects/ActionDisableGhost.cs b/Assets/Scripts/AbilitySystem/Actions/ActionEffects/ActionDisableGhost.cs
new file mode 100644
index 00000000..2da01daf
--- /dev/null
+++ b/Assets/Scripts/AbilitySystem/Actions/ActionEffects/ActionDisableGhost.cs
@@ -0,0 +1,19 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+// 残影特效
+public class ActionDisableGhost : ActionBase
+{
+ CharacterGhostEffect m_GhostEffect;
+
+ public ActionDisableGhost(CharacterGhostEffect effect)
+ {
+ m_GhostEffect = effect;
+ }
+
+ public override void Execute()
+ {
+ m_GhostEffect.IsEnable = false;
+ }
+}
diff --git a/Assets/Scripts/AbilitySystem/Actions/ActionEffects/ActionDisableGhost.cs.meta b/Assets/Scripts/AbilitySystem/Actions/ActionEffects/ActionDisableGhost.cs.meta
new file mode 100644
index 00000000..185da50b
--- /dev/null
+++ b/Assets/Scripts/AbilitySystem/Actions/ActionEffects/ActionDisableGhost.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 8548d7836b8033643954ca68cc3a5948
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/Scripts/AbilitySystem/Actions/ActionEffects/ActionEffectGhost.cs b/Assets/Scripts/AbilitySystem/Actions/ActionEffects/ActionEffectGhost.cs
index 0bff3df3..05d3a1a5 100644
--- a/Assets/Scripts/AbilitySystem/Actions/ActionEffects/ActionEffectGhost.cs
+++ b/Assets/Scripts/AbilitySystem/Actions/ActionEffects/ActionEffectGhost.cs
@@ -5,10 +5,15 @@ using UnityEngine;
// 残影特效
public class ActionEffectGhost : ActionBase
{
+ CharacterGhostEffect m_GhostEffect;
+ public ActionEffectGhost(CharacterGhostEffect effect)
+ {
+ m_GhostEffect = effect;
+ }
public override void Execute()
{
-
- }
+ m_GhostEffect.IsEnable = true;
+ }
}