From 68413182fb4e47d16b442fab9fb43c88a4ed8265 Mon Sep 17 00:00:00 2001 From: badlogic Date: Tue, 7 Sep 2021 01:10:28 +0200 Subject: [PATCH] [ts] Use the new AssetManager.require instead of AssetManager.get in example. --- spine-ts/spine-webgl/example/mix-and-match.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spine-ts/spine-webgl/example/mix-and-match.html b/spine-ts/spine-webgl/example/mix-and-match.html index dd80dc3fb..95231c973 100644 --- a/spine-ts/spine-webgl/example/mix-and-match.html +++ b/spine-ts/spine-webgl/example/mix-and-match.html @@ -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