summaryrefslogtreecommitdiff
path: root/GameCode/SpawnedAttack_ParentPlayer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'GameCode/SpawnedAttack_ParentPlayer.cs')
-rw-r--r--GameCode/SpawnedAttack_ParentPlayer.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/GameCode/SpawnedAttack_ParentPlayer.cs b/GameCode/SpawnedAttack_ParentPlayer.cs
new file mode 100644
index 0000000..f77247f
--- /dev/null
+++ b/GameCode/SpawnedAttack_ParentPlayer.cs
@@ -0,0 +1,9 @@
+using UnityEngine;
+
+public class SpawnedAttack_ParentPlayer : MonoBehaviour
+{
+ private void Start()
+ {
+ GetComponent<SpawnedAttack>().spawner = GetComponentInParent<Player>();
+ }
+}