// Learn TypeScript: // - https://docs.cocos.com/creator/2.4/manual/en/scripting/typescript.html // Learn Attribute: // - https://docs.cocos.com/creator/2.4/manual/en/scripting/reference/attributes.html // Learn life-cycle callbacks: // - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html import HeadIconScipt from "./HeadIconScipt"; import MoveTouchScript from "./MoveTouchScript"; const {ccclass, property} = cc._decorator; @ccclass export default class HeadNodeList extends cc.Component { @property(cc.Node) headNode: cc.Node = null; @property(cc.Node) headNodeContent: cc.Node = null; // LIFE-CYCLE CALLBACKS: // onLoad () {} start () { } setHeadData(headListData, checkNodelist, targetList){ for(let i = 0;i