top-block-game-cocos-demo/library/91/91d50ce0-702d-47fd-b540-447...

23 lines
521 B
Plaintext

import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;
@ccclass('<%UnderscoreCaseClassName%>')
export class <%UnderscoreCaseClassName%> extends Component {
// class member could be defined like this.
dummy = '';
// Use 'property' decorator if your want the member to be serializable.
@property
serializableDummy = 0;
start() {
// Your initialization goes here.
}
update(deltaTime) {
// Your update function goes here.
}
}