Skip to content

Regarding version mismatch. #2

@techguruCD

Description

@techguruCD

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.

And I can't fix this problem.
image

`
_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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions