class_name AnimationStateModifier extends StateModifier ## Animation modifier variables ## The name of the animation that could be applied and starting frame var animation_name: String = '' var animation_starting_frame: int = 0 var animation_speed: float func copy_AnimationStateModifier(_copy_state: AnimationStateModifier): .copy(_copy_state) _copy_state.animation_name = animation_name _copy_state.animation_starting_frame = animation_starting_frame _copy_state.animation_speed = animation_speed # This is probably not necessary just access properties directly #func animation_mod_setup( anim_name:String = ''): # # If somebody forgot to specify the type # if anim_name != '' and modifier_type == TYPE.NONE: # modifier_type = TYPE.REPLACE_ANIMATION # animation_name = anim_name ## if parent != null and function_name != "": ## state_call_function = funcref(parent, function_name)