summaryrefslogtreecommitdiff
path: root/SurvivalTest/Assets/Scripts/Props/Prop_SpaceBeamer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'SurvivalTest/Assets/Scripts/Props/Prop_SpaceBeamer.cs')
-rw-r--r--SurvivalTest/Assets/Scripts/Props/Prop_SpaceBeamer.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/SurvivalTest/Assets/Scripts/Props/Prop_SpaceBeamer.cs b/SurvivalTest/Assets/Scripts/Props/Prop_SpaceBeamer.cs
new file mode 100644
index 0000000..e191d41
--- /dev/null
+++ b/SurvivalTest/Assets/Scripts/Props/Prop_SpaceBeamer.cs
@@ -0,0 +1,21 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class Prop_SpaceBeamer : PropBase
+{
+ public override string name => "ÎÀÐÇÉäÏß";
+
+ public override string iconPath => "art/ui/propicon/space_beamer";
+
+ string prefabPath = "prefabs/weapon/space_beam";
+
+ public override void OnUse(GameObject owner)
+ {
+ TestSpaceBeam beam = UnityEngine.Object.Instantiate<TestSpaceBeam>(ResourceManager.Instance.Load<TestSpaceBeam>(prefabPath));
+
+ Vector3 pos3D = owner.GetComponent<TopDownTransform>().position;
+ beam.Set(pos3D + new Vector3(3, 0, 0));
+ }
+
+} \ No newline at end of file