Phaser API Documentation

  Version: 
values: Object.<string, *>

Description:

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:

this.data.values.gold;

You can also modify it directly:

this.data.values.gold += 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.

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