added switch action to turn off laser
This commit is contained in:
parent
d69c775c4b
commit
3e51a5062f
1 changed files with 6 additions and 0 deletions
|
@ -25,6 +25,12 @@ func _physics_process(delta):
|
||||||
line.visible = false
|
line.visible = false
|
||||||
sparks.emitting = false
|
sparks.emitting = false
|
||||||
|
|
||||||
|
func switch_action():
|
||||||
|
Console.print("Disable laser")
|
||||||
|
cast.enabled = false
|
||||||
|
off_time = INF
|
||||||
|
on_time = 0
|
||||||
|
|
||||||
func _enable_laser():
|
func _enable_laser():
|
||||||
cast.enabled = true
|
cast.enabled = true
|
||||||
timer.wait_time = on_time
|
timer.wait_time = on_time
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue