14 lines
239 B
GDScript3
14 lines
239 B
GDScript3
|
extends Spatial
|
||
|
|
||
|
export var hop = false
|
||
|
|
||
|
func _ready():
|
||
|
if hop:
|
||
|
$creature/AnimationPlayer.play("idle_hop")
|
||
|
else:
|
||
|
$creature/AnimationPlayer.play("idle_turn")
|
||
|
|
||
|
|
||
|
func _on_GoalInteractArea_interact():
|
||
|
pass # Replace with function body.
|