mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-08 16:24:53 +08:00
[unity] Fix of compile error (occurring in Unity 2019) introduced by commit 899a109. See #1628.
This commit is contained in:
parent
899a109a13
commit
c16cfdd158
@ -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));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user