pathtest.ts 1.0 KB

1234567891011121314151617181920212223242526272829
  1. const {ccclass, property} = cc._decorator;
  2. @ccclass
  3. export default class pathtest extends cc.Component {
  4. /*===========================自动绑定组件开始===========================*/
  5. /*自动生成*/
  6. @property({type:cc.Node, displayName:""})
  7. private $temp_node:cc.Node = null;
  8. /*===========================自动绑定组件结束===========================*/
  9. /*===========================自动生成按钮事件开始==========================*/
  10. /*===========================自动生成按钮事件结束==========================*/
  11. protected start(): void {
  12. // let ani = this.$temp_node.getComponent(cc.Animation);
  13. // for (let index = 0; index < 10; index++) {
  14. // let node = cc.instantiate(this.$temp_node);
  15. // let ani = node.getComponent(cc.Animation);
  16. // setTimeout(() => {
  17. // ani.play();
  18. // }, 500 * index);
  19. // this.node.addChild(node);
  20. // }
  21. }
  22. }