91d50ce0-702d-47fd-b540-447a0de3471d 521 B

12345678910111213141516171819202122
  1. import { _decorator, Component, Node } from 'cc';
  2. const { ccclass, property } = _decorator;
  3. @ccclass('<%UnderscoreCaseClassName%>')
  4. export class <%UnderscoreCaseClassName%> extends Component {
  5. // class member could be defined like this.
  6. dummy = '';
  7. // Use 'property' decorator if your want the member to be serializable.
  8. @property
  9. serializableDummy = 0;
  10. start() {
  11. // Your initialization goes here.
  12. }
  13. update(deltaTime) {
  14. // Your update function goes here.
  15. }
  16. }