cocos-animator/examples/example3-0rc/assets/script/cases/model/Model.ts

15 lines
363 B
TypeScript

import { Component, _decorator } from 'cc';
import AnimatorAnimation from '../../animator/AnimatorAnimation';
const { ccclass, property } = _decorator;
@ccclass('Model')
export class Model extends Component {
private _animator: AnimatorAnimation = null!;
start() {
this._animator = this.getComponent(AnimatorAnimation)!;
}
}