async waitOver(sp: cc.Node) {
cc.director.emit(GEvent.EffectTip);
let node = cc.instantiate(sp);
let pos = cc.find("Canvas/GameManager/EffectLayer/gird");
node.parent = pos;
console.log( node.getComponent(AnyIconItem).anyID)
console.log( sp.getComponent(AnyIconItem).anyID)
}
打印结果
为什么克隆后的新数据为null了。。原数据明明有的