summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Avatar/Actions/EffectActions
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Scripts/Avatar/Actions/EffectActions')
-rw-r--r--Assets/Scripts/Avatar/Actions/EffectActions/ActionDisableGhost.cs19
-rw-r--r--Assets/Scripts/Avatar/Actions/EffectActions/ActionDisableGhost.cs.meta11
-rw-r--r--Assets/Scripts/Avatar/Actions/EffectActions/ActionEffectGhost.cs19
-rw-r--r--Assets/Scripts/Avatar/Actions/EffectActions/ActionEffectGhost.cs.meta11
4 files changed, 60 insertions, 0 deletions
diff --git a/Assets/Scripts/Avatar/Actions/EffectActions/ActionDisableGhost.cs b/Assets/Scripts/Avatar/Actions/EffectActions/ActionDisableGhost.cs
new file mode 100644
index 00000000..2da01daf
--- /dev/null
+++ b/Assets/Scripts/Avatar/Actions/EffectActions/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/Avatar/Actions/EffectActions/ActionDisableGhost.cs.meta b/Assets/Scripts/Avatar/Actions/EffectActions/ActionDisableGhost.cs.meta
new file mode 100644
index 00000000..185da50b
--- /dev/null
+++ b/Assets/Scripts/Avatar/Actions/EffectActions/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/Avatar/Actions/EffectActions/ActionEffectGhost.cs b/Assets/Scripts/Avatar/Actions/EffectActions/ActionEffectGhost.cs
new file mode 100644
index 00000000..fa2d8e74
--- /dev/null
+++ b/Assets/Scripts/Avatar/Actions/EffectActions/ActionEffectGhost.cs
@@ -0,0 +1,19 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+// 残影特效
+public class ActionEffectGhost : ActionBase
+{
+ CharacterGhostEffect m_GhostEffect;
+
+ public ActionEffectGhost(CharacterGhostEffect effect)
+ {
+ m_GhostEffect = effect;
+ }
+
+ public override void Execute()
+ {
+ m_GhostEffect.IsEnable = true;
+ }
+}
diff --git a/Assets/Scripts/Avatar/Actions/EffectActions/ActionEffectGhost.cs.meta b/Assets/Scripts/Avatar/Actions/EffectActions/ActionEffectGhost.cs.meta
new file mode 100644
index 00000000..6a55db7d
--- /dev/null
+++ b/Assets/Scripts/Avatar/Actions/EffectActions/ActionEffectGhost.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 68cbffdb70cd84041b2aa7b2134a10e8
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant: