summaryrefslogtreecommitdiff
path: root/scripts/Entities/Actions/EscapeAction.cs
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/Entities/Actions/EscapeAction.cs')
-rw-r--r--scripts/Entities/Actions/EscapeAction.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/Entities/Actions/EscapeAction.cs b/scripts/Entities/Actions/EscapeAction.cs
new file mode 100644
index 0000000..cc5d289
--- /dev/null
+++ b/scripts/Entities/Actions/EscapeAction.cs
@@ -0,0 +1,13 @@
+using TheLegendOfGustav.Entities.Actors;
+using TheLegendOfGustav.Utils;
+
+namespace TheLegendOfGustav.Entities.Actions;
+
+public partial class EscapeAction(Actor actor) : Action(actor)
+{
+ public override bool Perform()
+ {
+ SignalBus.Instance.EmitSignal(SignalBus.SignalName.EscapeRequested);
+ return false;
+ }
+} \ No newline at end of file