Tutorial how to use json

hello, in that tutorial you have split the code to explain better all the functions, but the first one start with
Game.attributes.add(‘characterData’, {
it miss the
var Game = pc.createScript(‘game’);
…am i right?

That’s just part of the script. The whole script from the tutorial is here:

https://playcanvas.com/editor/asset/4467739

The entire script is shown at the bottom of the tutorial page.

yes i noticed that, but since someone can miss that i just pointed that out