123456789101112131415161718192021 |
- const {ccclass, property} = cc._decorator;
- @ccclass
- export default class NewClass extends cc.Component {
- @property(cc.Label)
- label: cc.Label = null;
- @property
- text: string = 'hello';
- // LIFE-CYCLE CALLBACKS:
- // onLoad () {}
- start () {
- }
- // update (dt) {}
- }
|