mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +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 () {
|
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));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user