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

快速上手: 制作第一个游戏 #289

Closed
allenliao opened this issue Mar 12, 2018 · 2 comments
Closed

快速上手: 制作第一个游戏 #289

allenliao opened this issue Mar 12, 2018 · 2 comments
Assignees

Comments

@allenliao
Copy link

URL : https://github.com/cocos-creator/creator-docs/blob/master/zh/getting-started/quick-start.md

this.player.getComponent('Player').jumpHeight
📝 https://github.com/cocos-creator/creator-docs/blob/master/zh/getting-started/quick-start.md#L431

應該要這樣寫:
this.player.jumpHeight

不用這樣寫:
this.player.getComponent('Player').jumpHeight
編譯出來的 JS 會報錯

@ColinCollins
Copy link

功能的是对的啊, player是node节点, 本身不包含jumpHeight属性

@ColinCollins
Copy link

@allenliao

@jareguo jareguo closed this as completed Mar 13, 2018
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

3 participants