1234567891011121314151617181920212223242526272829 |
- const {ccclass, property} = cc._decorator;
- @ccclass
- export default class pathtest extends cc.Component {
- /*===========================自动绑定组件开始===========================*/
- /*自动生成*/
- @property({type:cc.Node, displayName:""})
- private $temp_node:cc.Node = null;
-
- /*===========================自动绑定组件结束===========================*/
- /*===========================自动生成按钮事件开始==========================*/
- /*===========================自动生成按钮事件结束==========================*/
- protected start(): void {
- // let ani = this.$temp_node.getComponent(cc.Animation);
- // for (let index = 0; index < 10; index++) {
-
- // let node = cc.instantiate(this.$temp_node);
- // let ani = node.getComponent(cc.Animation);
- // setTimeout(() => {
- // ani.play();
- // }, 500 * index);
- // this.node.addChild(node);
- // }
- }
- }
|