Added override switch
This commit is contained in:
13
scripts/switch_override.gd
Normal file
13
scripts/switch_override.gd
Normal file
@@ -0,0 +1,13 @@
|
||||
extends SwitchBasic
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
add_to_group("switch_override")
|
||||
|
||||
func interact():
|
||||
switch()
|
||||
|
||||
func _on_static_body_3d_switch_hit() -> void:
|
||||
if bullet_enabled:
|
||||
switch()
|
||||
Reference in New Issue
Block a user