-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
Hi.
I've tried to use your source code on my PC but it doesn't work with many errors.
I think the version is different when you've committed between now and while the Cocos is updating, some functions are removed or some functions're added.
`
_spawnPipe(){
let pipeGroup = null;
if (cc.pool.hasObject(PipeGroup)) { // Cocos can't find 'hasObject'
pipeGroup = cc.pool.getFromPool(PipeGroup);
} else {
pipeGroup = cc.instantiate(this.pipePrefab).getComponent(PipeGroup);
}
this.node.addChild(pipeGroup.node);
pipeGroup.node.active = true;
pipeGroup.init(this);
this.pipeList.push(pipeGroup);
},
`
Please help me with this.
Great regards.
Colin
techguruCD
Metadata
Metadata
Assignees
Labels
No labels
