mirror of
https://github.com/HarmonyHoney/tiny_crate.git
synced 2026-07-22 23:49:24 +00:00
20 lines
267 B
GDScript
20 lines
267 B
GDScript
tool
|
|
extends Actor
|
|
class_name SwitchBlock
|
|
|
|
export var color := "red"
|
|
|
|
var node_sprite : Sprite
|
|
|
|
func _ready():
|
|
if Engine.editor_hint:
|
|
return
|
|
|
|
add_to_group("switch_block_" + color)
|
|
|
|
node_sprite = $Sprite
|
|
|
|
|
|
func _process(delta):
|
|
if Engine.editor_hint:
|
|
return
|