We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89885dc commit 8d8ca49Copy full SHA for 8d8ca49
1 file changed
src/components/Color.js
@@ -14,7 +14,7 @@ Phaser.Component.Color = function (gameObject)
14
{
15
this.gameObject = gameObject;
16
17
- this.game = gameObject.game;
+ this.state = gameObject.state;
18
19
this._dirty = false;
20
@@ -123,7 +123,7 @@ Phaser.Component.Color.prototype = {
123
destroy: function ()
124
125
this.gameObject = null;
126
- this.game = null;
+ this.state = null;
127
this._tint = [];
128
}
129
@@ -146,7 +146,7 @@ Object.defineProperties(Phaser.Component.Color.prototype, {
146
147
if (!this._dirty)
148
149
- this.game.updates.add(this);
+ this.state.sys.updates.add(this);
150
151
152
this._dirty = true;
0 commit comments