godot-demo-projects/misc/pause/process_mode.gd

8 lines
161 B
GDScript3
Raw Normal View History

extends OptionButton
@onready var cube_animation = $"../../AnimationPlayer"
func _on_option_button_item_selected(index):
cube_animation.process_mode = index