From c16cfdd1581f778aeaf6447359b3bcf2d19833ed Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Wed, 30 Sep 2020 17:04:42 +0200 Subject: [PATCH] [unity] Fix of compile error (occurring in Unity 2019) introduced by commit 899a109. See #1628. --- .../MixAndMatchSkinsExample.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spine-unity/Assets/Spine Examples/Scripts/Mix and Match Character Customize/MixAndMatchSkinsExample.cs b/spine-unity/Assets/Spine Examples/Scripts/Mix and Match Character Customize/MixAndMatchSkinsExample.cs index fa2a46a49..13951f94d 100644 --- a/spine-unity/Assets/Spine Examples/Scripts/Mix and Match Character Customize/MixAndMatchSkinsExample.cs +++ b/spine-unity/Assets/Spine Examples/Scripts/Mix and Match Character Customize/MixAndMatchSkinsExample.cs @@ -155,7 +155,7 @@ namespace Spine.Unity.Examples { void UpdateCharacterSkin () { var skeleton = skeletonAnimation.Skeleton; - var skeletonData = skeleton.data; + var skeletonData = skeleton.Data; characterSkin = new Skin("character-base"); // Note that the result Skin returned by calls to skeletonData.FindSkin() // could be cached once in Start() instead of searching for the same skin @@ -169,7 +169,7 @@ namespace Spine.Unity.Examples { void AddEquipmentSkinsTo (Skin combinedSkin) { var skeleton = skeletonAnimation.Skeleton; - var skeletonData = skeleton.data; + var skeletonData = skeleton.Data; combinedSkin.AddSkin(skeletonData.FindSkin(clothesSkin)); combinedSkin.AddSkin(skeletonData.FindSkin(pantsSkin)); if (!string.IsNullOrEmpty(bagSkin)) combinedSkin.AddSkin(skeletonData.FindSkin(bagSkin));