26 lines
553 B
GDScript3
26 lines
553 B
GDScript3
|
extends StaticBody
|
||
|
|
||
|
# export variables
|
||
|
export(NodePath) var outline_path
|
||
|
export(NodePath) var levermesh_path
|
||
|
|
||
|
# private members
|
||
|
var _isOn = false
|
||
|
# var b = "text"
|
||
|
|
||
|
func do_interact(var player):
|
||
|
if(_isOn):
|
||
|
get_node(levermesh_path).rotate_x(-PI/2)
|
||
|
_isOn = false
|
||
|
else:
|
||
|
get_node(levermesh_path).rotate_x(PI/2)
|
||
|
_isOn = true
|
||
|
|
||
|
# Called when the node enters the scene tree for the first time.
|
||
|
func _ready():
|
||
|
pass # Replace with function body.
|
||
|
|
||
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||
|
#func _process(delta):
|
||
|
# pass
|