diff options
author | chai <chaifix@163.com> | 2022-04-23 13:24:05 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2022-04-23 13:24:05 +0800 |
commit | bdb737230b30e8fb9be63d95b792e8c8ba531ea0 (patch) | |
tree | 9e1fe83c65af581d6b3411bcf1b00af4bde8990a /SurvivalTest/Assets/Scripts/Items/Item_SpaceBeamer.cs | |
parent | 747a355b8a7d273264ce1d8f1848633f8fa52c47 (diff) |
* ui staff
Diffstat (limited to 'SurvivalTest/Assets/Scripts/Items/Item_SpaceBeamer.cs')
-rw-r--r-- | SurvivalTest/Assets/Scripts/Items/Item_SpaceBeamer.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/SurvivalTest/Assets/Scripts/Items/Item_SpaceBeamer.cs b/SurvivalTest/Assets/Scripts/Items/Item_SpaceBeamer.cs index 2ccbb9c..73492ee 100644 --- a/SurvivalTest/Assets/Scripts/Items/Item_SpaceBeamer.cs +++ b/SurvivalTest/Assets/Scripts/Items/Item_SpaceBeamer.cs @@ -4,10 +4,18 @@ using UnityEngine; public class Item_SpaceBeamer : ItemBase { + public override string name => "Ì«¿ÕÉäÏß"; + + public override string iconPath => "art/ui/skillicon/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 |