[unity] Fixed compile error after merging commit 75b9321 to 4.0 branch.

This commit is contained in:
Harald Csaszar 2020-11-11 16:10:02 +01:00
parent 97cf4a9294
commit ceb3402627
2 changed files with 4 additions and 4 deletions

View File

@ -240,10 +240,10 @@ namespace Spine.Unity.Editor {
foreach (var skin in skeletonGraphic.Skeleton.Data.Skins) {
var attachments = skin.Attachments;
foreach (var entry in attachments) {
var boundingBoxAttachment = entry.Value as BoundingBoxAttachment;
var boundingBoxAttachment = entry.Attachment as BoundingBoxAttachment;
if (boundingBoxAttachment == null)
continue;
int slotIndex = entry.Key.SlotIndex;
int slotIndex = entry.SlotIndex;
var slot = skeletonGraphic.Skeleton.Slots.Items[slotIndex];
string slotName = slot.Data.Name;
GameObject go = AddBoundingBoxFollowerGraphicChild(skeletonGraphic,

View File

@ -239,10 +239,10 @@ namespace Spine.Unity.Editor {
foreach (var skin in skeletonRenderer.Skeleton.Data.Skins) {
var attachments = skin.Attachments;
foreach (var entry in attachments) {
var boundingBoxAttachment = entry.Value as BoundingBoxAttachment;
var boundingBoxAttachment = entry.Attachment as BoundingBoxAttachment;
if (boundingBoxAttachment == null)
continue;
int slotIndex = entry.Key.SlotIndex;
int slotIndex = entry.SlotIndex;
var slot = skeletonRenderer.Skeleton.Slots.Items[slotIndex];
string slotName = slot.Data.Name;
GameObject go = AddBoundingBoxFollowerChild(skeletonRenderer,