BasePlayerController.js 741 B

12345678910111213141516171819202122232425262728293031
  1. cc.Class({
  2. extends: cc.Component,
  3. properties: {
  4. // foo: {
  5. // // ATTRIBUTES:
  6. // default: null, // The default value will be used only when the component attaching
  7. // // to a node for the first time
  8. // type: cc.SpriteFrame, // optional, default is typeof default
  9. // serializable: true, // optional, default is true
  10. // },
  11. // bar: {
  12. // get () {
  13. // return this._bar;
  14. // },
  15. // set (value) {
  16. // this._bar = value;
  17. // }
  18. // },
  19. },
  20. // LIFE-CYCLE CALLBACKS:
  21. // onLoad () {},
  22. start () {
  23. },
  24. // update (dt) {},
  25. });