提供对SpriteAnimator中的一些字段的访问
This commit is contained in:
@@ -2007,6 +2007,13 @@ var SpriteAnimator = (function (_super) {
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(SpriteAnimator.prototype, "animations", {
|
||||
get: function () {
|
||||
return this._animations;
|
||||
},
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
SpriteAnimator.prototype.addAnimation = function (name, animation) {
|
||||
if (!this.sprite && animation.sprites.length > 0)
|
||||
this.setSprite(animation.sprites[0]);
|
||||
|
||||
Reference in New Issue
Block a user