mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 14:38:30 +00:00
Tween hasStarted parameter set to false when tween finishes
This commit is contained in:
parent
1c169ef571
commit
840b49b6cd
1 changed files with 4 additions and 2 deletions
|
@ -357,6 +357,7 @@ Phaser.Tween.prototype = {
|
||||||
if (complete)
|
if (complete)
|
||||||
{
|
{
|
||||||
this.onComplete.dispatch(this.target, this);
|
this.onComplete.dispatch(this.target, this);
|
||||||
|
this._hasStarted = false;
|
||||||
|
|
||||||
if (this.chainedTween)
|
if (this.chainedTween)
|
||||||
{
|
{
|
||||||
|
@ -813,6 +814,7 @@ Phaser.Tween.prototype = {
|
||||||
// No more repeats and no more children, so we're done
|
// No more repeats and no more children, so we're done
|
||||||
this.isRunning = false;
|
this.isRunning = false;
|
||||||
this.onComplete.dispatch(this.target, this);
|
this.onComplete.dispatch(this.target, this);
|
||||||
|
this._hasStarted = false;
|
||||||
|
|
||||||
if (this.chainedTween)
|
if (this.chainedTween)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue