import { _decorator, Component, Node, animation } from "cc"; const { ccclass, property } = _decorator; @ccclass("<%UnderscoreCaseClassName%>") export class <%UnderscoreCaseClassName%> extends animation.StateMachineComponent { /** * Called right after a motion state is entered. * @param controller The animation controller it within. * @param motionStateStatus The status of the motion. */ public onMotionStateEnter (controller: animation.AnimationController, motionStateStatus: Readonly): void { // Can be overrode } /** * Called when a motion state is about to exit. * @param controller The animation controller it within. * @param motionStateStatus The status of the motion. */ public onMotionStateExit (controller: animation.AnimationController, motionStateStatus: Readonly): void { // Can be overrode } /** * Called when a motion state updated except for the first and last frame. * @param controller The animation controller it within. * @param motionStateStatus The status of the motion. */ public onMotionStateUpdate (controller: animation.AnimationController, motionStateStatus: Readonly): void { // Can be overrode } /** * Called right after a state machine is entered. * @param controller The animation controller it within. */ public onStateMachineEnter (controller: animation.AnimationController) { // Can be overrode } /** * Called right after a state machine is entered. * @param controller The animation controller it within. */ public onStateMachineExit (controller: animation.AnimationController) { // Can be overrode } }