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(ResourceManager.Instance.Load(prefabPath)); Vector3 pos3D = owner.GetComponent().position; beam.Set(pos3D + new Vector3(3, 0, 0)); } }