Cow_Life_Sim_RPG/Interactions/Spinable/Spinable.gd

8 lines
97 B
GDScript

extends Interaction
func _ready():
add_action("Spin", spin)
func spin():
get_parent().spin()