LandContorll.ts 877 B

1234567891011121314151617181920212223242526272829303132
  1. import { _decorator, Component, Node } from 'cc';
  2. const { ccclass, property } = _decorator;
  3. @ccclass('LandContorll')
  4. export class LandContorll extends Component {
  5. // [1]
  6. // dummy = '';
  7. // [2]
  8. // @property
  9. // serializableDummy = 0;
  10. start () {
  11. // [3]
  12. }
  13. // update (deltaTime: number) {
  14. // // [4]
  15. // }
  16. }
  17. /**
  18. * [1] Class member could be defined like this.
  19. * [2] Use `property` decorator if your want the member to be serializable.
  20. * [3] Your initialization goes here.
  21. * [4] Your update function goes here.
  22. *
  23. * Learn more about scripting: https://docs.cocos.com/creator/3.0/manual/en/scripting/
  24. * Learn more about CCClass: https://docs.cocos.com/creator/3.0/manual/en/scripting/ccclass.html
  25. * Learn more about life-cycle callbacks: https://docs.cocos.com/creator/3.0/manual/en/scripting/life-cycle-callbacks.html
  26. */