mirror of
https://github.com/photonstorm/phaser
synced 2024-11-21 20:23:19 +00:00
Added getBoneList
This commit is contained in:
parent
4293a444e3
commit
dedab594fd
1 changed files with 17 additions and 0 deletions
|
@ -190,6 +190,23 @@ var SpineGameObject = new Class({
|
|||
return this;
|
||||
},
|
||||
|
||||
getBoneList: function ()
|
||||
{
|
||||
var output = [];
|
||||
|
||||
var skeletonData = this.skeletonData;
|
||||
|
||||
if (skeletonData)
|
||||
{
|
||||
for (var i = 0; i < skeletonData.bones.length; i++)
|
||||
{
|
||||
output.push(skeletonData.bones[i].name);
|
||||
}
|
||||
}
|
||||
|
||||
return output;
|
||||
},
|
||||
|
||||
getAnimationList: function ()
|
||||
{
|
||||
var output = [];
|
||||
|
|
Loading…
Reference in a new issue