Added GetCurrentKey to Animation class.

This commit is contained in:
photonstorm 2017-06-26 14:52:58 +01:00
parent a50a8d31f7
commit a59784c960
3 changed files with 11 additions and 0 deletions

View file

@ -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,

View file

@ -0,0 +1,9 @@
var GetCurrentKey = function ()
{
if (this.currentAnim)
{
return this.currentAnim.key;
}
};
module.exports = GetCurrentKey;

View file

@ -6,6 +6,7 @@ module.exports = {
Delay: require('./Delay'),
DelayedPlay: require('./DelayedPlay'),
GetCurrentKey: require('./GetCurrentKey'),
Load: require('./Load'),
Pause: require('./Pause'),
Paused: require('./Paused'),