xiandie/addons/property-inspector/pro_animation_sprite2d/state_move_res.gd

7 lines
265 B
GDScript3
Raw Normal View History

class_name StateMoveConfigResource extends Resource
@export var animation := ""
@export var velocity := Vector2(0, 0)
# 如果 movement_x != 0 (可正可负), 移动 movement_x 后播放 animation_next
@export var movement_x := 0.0
@export var animation_next := ""