Phaser API Documentation

values: Object.<string, *>


The public values list. You can use this to access anything you have stored in this Data Manager. For example, if you set a value called gold you can access it via:;

You can also modify it directly: += 1000;

Doing so will emit a setdata event from the parent of this Data Manager.

Do not modify this object directly. Adding properties directly to this object will not emit any events. Always use DataManager.set to create new items the first time around.

Object.<string, *>
Default: {}
Since: 3.10.0
Source: src/data/DataManager.js (Line 72)