29 lines
416 B
TypeScript
29 lines
416 B
TypeScript
/**
|
|
* 状态逻辑基类
|
|
*/
|
|
export default class AnimatorStateLogic {
|
|
constructor() {
|
|
}
|
|
|
|
/**
|
|
* 进入状态时调用
|
|
* @virtual
|
|
*/
|
|
public onEntry() {
|
|
}
|
|
|
|
/**
|
|
* 每次状态机逻辑更新时调用
|
|
* @virtual
|
|
*/
|
|
public onUpdate() {
|
|
}
|
|
|
|
/**
|
|
* 离开状态时调用
|
|
* @virtual
|
|
*/
|
|
public onExit() {
|
|
}
|
|
}
|