mirror of
https://github.com/wassname/phaser.git
synced 2026-08-05 13:21:00 +08:00
Group.callAll now supports nested functions and a context, making it really powerful!
This commit is contained in:
@@ -158,6 +158,21 @@ Phaser.TweenManager.prototype = {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* Checks to see if a particular Sprite is currently being tweened.
|
||||
*
|
||||
* @method Phaser.TweenManager#isTweening
|
||||
* @param {object} object - The object to check for tweens against.
|
||||
* @returns {boolean} Returns true if the object is currently being tweened, false if not.
|
||||
*/
|
||||
isTweening: function(object) {
|
||||
|
||||
return this._tweens.some(function(tween) {
|
||||
return tween._object === object;
|
||||
});
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* Pauses all currently running tweens.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user