Parcourir la source

[unity] Fix of compile error (occurring in Unity 2019) introduced by commit 899a109. See #1628.

Harald Csaszar il y a 5 ans
Parent
commit
c16cfdd158

+ 2 - 2
spine-unity/Assets/Spine Examples/Scripts/Mix and Match Character Customize/MixAndMatchSkinsExample.cs

@@ -155,7 +155,7 @@ namespace Spine.Unity.Examples {
 
 
 		void UpdateCharacterSkin () {
 		void UpdateCharacterSkin () {
 			var skeleton = skeletonAnimation.Skeleton;
 			var skeleton = skeletonAnimation.Skeleton;
-			var skeletonData = skeleton.data;
+			var skeletonData = skeleton.Data;
 			characterSkin = new Skin("character-base");
 			characterSkin = new Skin("character-base");
 			// Note that the result Skin returned by calls to skeletonData.FindSkin()
 			// Note that the result Skin returned by calls to skeletonData.FindSkin()
 			// could be cached once in Start() instead of searching for the same skin
 			// 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) {
 		void AddEquipmentSkinsTo (Skin combinedSkin) {
 			var skeleton = skeletonAnimation.Skeleton;
 			var skeleton = skeletonAnimation.Skeleton;
-			var skeletonData = skeleton.data;
+			var skeletonData = skeleton.Data;
 			combinedSkin.AddSkin(skeletonData.FindSkin(clothesSkin));
 			combinedSkin.AddSkin(skeletonData.FindSkin(clothesSkin));
 			combinedSkin.AddSkin(skeletonData.FindSkin(pantsSkin));
 			combinedSkin.AddSkin(skeletonData.FindSkin(pantsSkin));
 			if (!string.IsNullOrEmpty(bagSkin)) combinedSkin.AddSkin(skeletonData.FindSkin(bagSkin));
 			if (!string.IsNullOrEmpty(bagSkin)) combinedSkin.AddSkin(skeletonData.FindSkin(bagSkin));