public void Fire(DanmakuEditor.BaseBullet baseBullet, Vector3 p_direction) { DanmakuEditor.BeamBullet beamInfo = (DanmakuEditor.BeamBullet)baseBullet; if (beamObject == null) { beamObject = CreateBeam(beamInfo); OnBeamCreate(beamObject); } }
public override void Reset() { base.Reset(); baseBullet = null; }
public override void SetUp(DanmakuEditor.BaseBullet p_baseBullet, float p_spawnTime) { base.SetUp(p_baseBullet, p_spawnTime); baseBullet = (DanmakuEditor.BeamBullet)p_baseBullet; lineRenderer = GetComponent <LineRenderer>(); }