mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 07:01:20 +00:00
Added GetCurrentKey to Animation class.
This commit is contained in:
parent
a50a8d31f7
commit
a59784c960
3 changed files with 11 additions and 0 deletions
|
@ -85,6 +85,7 @@ var Animation = new Class({
|
|||
|
||||
delay: Components.Delay,
|
||||
delayedPlay: Components.DelayedPlay,
|
||||
getCurrentKey: Components.GetCurrentKey,
|
||||
load: Components.Load,
|
||||
pause: Components.Pause,
|
||||
paused: Components.Paused,
|
||||
|
|
9
v3/src/components/animation/GetCurrentKey.js
Normal file
9
v3/src/components/animation/GetCurrentKey.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
var GetCurrentKey = function ()
|
||||
{
|
||||
if (this.currentAnim)
|
||||
{
|
||||
return this.currentAnim.key;
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = GetCurrentKey;
|
|
@ -6,6 +6,7 @@ module.exports = {
|
|||
|
||||
Delay: require('./Delay'),
|
||||
DelayedPlay: require('./DelayedPlay'),
|
||||
GetCurrentKey: require('./GetCurrentKey'),
|
||||
Load: require('./Load'),
|
||||
Pause: require('./Pause'),
|
||||
Paused: require('./Paused'),
|
||||
|
|
Loading…
Reference in a new issue