Skip to content

Commit 8d8ca49

Browse files
committed
Fixed UpdateManager call.
1 parent 89885dc commit 8d8ca49

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/Color.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Phaser.Component.Color = function (gameObject)
1414
{
1515
this.gameObject = gameObject;
1616

17-
this.game = gameObject.game;
17+
this.state = gameObject.state;
1818

1919
this._dirty = false;
2020

@@ -123,7 +123,7 @@ Phaser.Component.Color.prototype = {
123123
destroy: function ()
124124
{
125125
this.gameObject = null;
126-
this.game = null;
126+
this.state = null;
127127
this._tint = [];
128128
}
129129

@@ -146,7 +146,7 @@ Object.defineProperties(Phaser.Component.Color.prototype, {
146146
{
147147
if (!this._dirty)
148148
{
149-
this.game.updates.add(this);
149+
this.state.sys.updates.add(this);
150150
}
151151

152152
this._dirty = true;

0 commit comments

Comments
 (0)