Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regarding version mismatch. #2

Open
techguruCD opened this issue Sep 6, 2018 · 0 comments
Open

Regarding version mismatch. #2

techguruCD opened this issue Sep 6, 2018 · 0 comments

Comments

@techguruCD
Copy link

techguruCD commented Sep 6, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant