fix:编辑器文件导入. add:example,runtime
This commit is contained in:
14
examples/example3-0rc/assets/script/cases/model/Model.ts
Normal file
14
examples/example3-0rc/assets/script/cases/model/Model.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
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)!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "4.0.21",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "95984e29-62ff-4654-b528-f781f1adc24e",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
Reference in New Issue
Block a user