TweenManager.begin is now called.

This commit is contained in:
Richard Davey 2017-05-17 04:37:30 +01:00
parent 47d4dc4cf2
commit b77c34562a

View file

@ -120,8 +120,7 @@ Systems.prototype = {
step: function (time, delta) step: function (time, delta)
{ {
// Before or after child update? this.tweens.begin(time);
this.tweens.update(time, delta);
var list = this.children.list; var list = this.children.list;
@ -130,12 +129,16 @@ Systems.prototype = {
list[i].preUpdate(time, delta); list[i].preUpdate(time, delta);
} }
this.tweens.update(time, delta);
this.cameras.update(time, delta); this.cameras.update(time, delta);
this.state.update.call(this.state, time, delta); this.state.update.call(this.state, time, delta);
}, },
// Called just once per frame, regardless of speed // Called just once per frame, regardless of speed
/*
begin: function (timestamp, frameDelta) begin: function (timestamp, frameDelta)
{ {
var list = this.children.list; var list = this.children.list;
@ -153,6 +156,7 @@ Systems.prototype = {
this.state.update.call(this.state, timestep, physicsStep); this.state.update.call(this.state, timestep, physicsStep);
}, },
*/
// Called just once per frame // Called just once per frame
render: function (interpolation, renderer) render: function (interpolation, renderer)