In Quick Start tutorial, this.game is undefined

In Quick Start tutorial, this.game is undefined
0

I practice cocos creator with “Quick Start” tutorial.

now I add star and if purple monster hit star, destroy star and spawn star part.
but in star.js, var playerPos = this.game.player.getPosition(); is undefined.
I check just this.game, undefined too.

I set star.game in Game.js same to tutorial.
newStar.getComponent(‘Star’).game = this;

but Star.js can’t find this.game.

Why do I get this error?

and in cocos creator, in starPrefab, script component(Star.js) has lock icon.
if problem is this?
star

https://drive.google.com/open?id=1KEAs2wxv2RR66FzidxBQd6TStmUhPjCv
here is my project file.
cocos creator version is 1.9.0.
plz help

solved. I use star.js other side to.

Hi there,

Would you mind put it clearer? What did you do to solve this problem?