summaryrefslogtreecommitdiff
path: root/GameCode/ReflectEvent.cs
diff options
context:
space:
mode:
Diffstat (limited to 'GameCode/ReflectEvent.cs')
-rw-r--r--GameCode/ReflectEvent.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/GameCode/ReflectEvent.cs b/GameCode/ReflectEvent.cs
new file mode 100644
index 0000000..eb3dab6
--- /dev/null
+++ b/GameCode/ReflectEvent.cs
@@ -0,0 +1,12 @@
+using UnityEngine.Events;
+
+public class ReflectEvent : RayHitEffect
+{
+ public UnityEvent bounceEvent;
+
+ public override HasToReturn DoHitEffect(HitInfo hit)
+ {
+ bounceEvent.Invoke();
+ return HasToReturn.canContinue;
+ }
+}