runRight.ts 302 B

12345678910111213141516171819202122
  1. const {ccclass, property} = cc._decorator;
  2. @ccclass
  3. export default class NewClass extends cc.Component {
  4. @property(cc.Label)
  5. label: cc.Label = null;
  6. @property
  7. text: string = 'hello';
  8. // LIFE-CYCLE CALLBACKS:
  9. // onLoad () {}
  10. start () {
  11. }
  12. // update (dt) {}
  13. }