mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
[ts] Use the new AssetManager.require instead of AssetManager.get in example.
This commit is contained in:
parent
3ba8a2ffc2
commit
68413182fb
@ -27,13 +27,13 @@
|
||||
let assetManager = canvas.assetManager;
|
||||
|
||||
// Create the atlas
|
||||
let atlas = canvas.assetManager.get("mix-and-match-pma.atlas");
|
||||
let atlas = canvas.assetManager.require("mix-and-match-pma.atlas");
|
||||
let atlasLoader = new spine.AtlasAttachmentLoader(atlas);
|
||||
|
||||
// Create the skeleton
|
||||
let skeletonBinary = new spine.SkeletonBinary(atlasLoader);
|
||||
skeletonBinary.scale = 0.5;
|
||||
let skeletonData = skeletonBinary.readSkeletonData(assetManager.get("mix-and-match-pro.skel"));
|
||||
let skeletonData = skeletonBinary.readSkeletonData(assetManager.require("mix-and-match-pro.skel"));
|
||||
this.skeleton = new spine.Skeleton(skeletonData);
|
||||
|
||||
// Create the animation state
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user