Skip to content

Commit

Permalink
Problem with laser.gd spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
miniluz committed Jul 7, 2023
1 parent 140405b commit 8a82ef8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/bullets/laser.gd
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ func init(spawn_position: Vector3, target_position: Vector3, radius: float) -> v

func _physics_process(_delta):
if state == State.WAIT:
look_at(get_parent().get_node("Player").position)
look_at(get_parent().get_node("Player").position)

func fire(_song) -> void:
if state != State.FIRE:
state = State.FIRE
state = State.FIRE
Conductor.beat_signal.disconnect(fire)
Conductor.beat_signal.connect(stop_firing)

if tween:
tween.kill()
tween.kill()

LaserMesh.top_radius = final_radius
LaserMesh.bottom_radius = final_radius
Expand Down

0 comments on commit 8a82ef8

Please sign in to comment.