summaryrefslogtreecommitdiff
path: root/GameCode/EnableEvent.cs
diff options
context:
space:
mode:
Diffstat (limited to 'GameCode/EnableEvent.cs')
-rw-r--r--GameCode/EnableEvent.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/GameCode/EnableEvent.cs b/GameCode/EnableEvent.cs
new file mode 100644
index 0000000..2a2cfa0
--- /dev/null
+++ b/GameCode/EnableEvent.cs
@@ -0,0 +1,12 @@
+using UnityEngine;
+using UnityEngine.Events;
+
+public class EnableEvent : MonoBehaviour
+{
+ public UnityEvent enableEvent;
+
+ public void OnEnable()
+ {
+ enableEvent.Invoke();
+ }
+}