Skip to content

Commit

Permalink
Fix a crash in the _process method (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
HK-SHAO authored Apr 4, 2022
1 parent 2e15a35 commit 65de4fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enemies/red_robot/laser/impact_effect/blast.gd
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ func _ready():


func _process(_delta):
if camera:
if is_instance_valid(camera):
light_rays.look_at(camera.global_transform.origin, Vector3.UP)

0 comments on commit 65de4fd

Please sign in to comment.