import { _decorator, Component, Vec3, Enum } from 'cc'; const { ccclass, property } = _decorator; @ccclass('DBData') /** * @description:龙骨动画渲染器 数据类 * @author:Soonsky */ export class DBData extends Component { @property({ tooltip: "默认动画"}) defaultAnimation: string = "idle"; /**当前动画 */ public curAnimation: string = ""; /**当前翻转 */ public direction: number = 1; /**看向的目标位置 */ public targetPos: Vec3 = null; onLoad() { this.curAnimation = this.defaultAnimation; } }