diff --git a/Assets/Scenes/DeckEditor.unity b/Assets/Scenes/DeckEditor.unity index 873f342d2..b6d3dabb0 100644 --- a/Assets/Scenes/DeckEditor.unity +++ b/Assets/Scenes/DeckEditor.unity @@ -493,7 +493,7 @@ Prefab: - target: {fileID: 224252938770132402, guid: 09ee4d14818c1ba47b96c322e8a36f1d, type: 2} propertyPath: m_SizeDelta.x - value: -81.55502 + value: -59.06015 objectReference: {fileID: 0} - target: {fileID: 224673017872509486, guid: 09ee4d14818c1ba47b96c322e8a36f1d, type: 2} @@ -508,17 +508,17 @@ Prefab: - target: {fileID: 224673017872509486, guid: 09ee4d14818c1ba47b96c322e8a36f1d, type: 2} propertyPath: m_AnchoredPosition.y - value: 0 + value: -76.19174 objectReference: {fileID: 0} - target: {fileID: 224673017872509486, guid: 09ee4d14818c1ba47b96c322e8a36f1d, type: 2} propertyPath: m_SizeDelta.x - value: 522 + value: 502.55273 objectReference: {fileID: 0} - target: {fileID: 224673017872509486, guid: 09ee4d14818c1ba47b96c322e8a36f1d, type: 2} propertyPath: m_SizeDelta.y - value: 0 + value: 152.38348 objectReference: {fileID: 0} - target: {fileID: 224174961411463182, guid: 09ee4d14818c1ba47b96c322e8a36f1d, type: 2} @@ -533,22 +533,22 @@ Prefab: - target: {fileID: 224174961411463182, guid: 09ee4d14818c1ba47b96c322e8a36f1d, type: 2} propertyPath: m_AnchoredPosition.x - value: 522 + value: 502.55273 objectReference: {fileID: 0} - target: {fileID: 224174961411463182, guid: 09ee4d14818c1ba47b96c322e8a36f1d, type: 2} propertyPath: m_AnchoredPosition.y - value: 0 + value: -76.19174 objectReference: {fileID: 0} - target: {fileID: 224174961411463182, guid: 09ee4d14818c1ba47b96c322e8a36f1d, type: 2} propertyPath: m_SizeDelta.x - value: 522 + value: 502.55273 objectReference: {fileID: 0} - target: {fileID: 224174961411463182, guid: 09ee4d14818c1ba47b96c322e8a36f1d, type: 2} propertyPath: m_SizeDelta.y - value: 0 + value: 152.38348 objectReference: {fileID: 0} - target: {fileID: 224677791729663838, guid: 09ee4d14818c1ba47b96c322e8a36f1d, type: 2} @@ -563,32 +563,32 @@ Prefab: - target: {fileID: 224677791729663838, guid: 09ee4d14818c1ba47b96c322e8a36f1d, type: 2} propertyPath: m_AnchoredPosition.x - value: 1044 + value: 1005.10547 objectReference: {fileID: 0} - target: {fileID: 224677791729663838, guid: 09ee4d14818c1ba47b96c322e8a36f1d, type: 2} propertyPath: m_AnchoredPosition.y - value: 0 + value: -76.19174 objectReference: {fileID: 0} - target: {fileID: 224677791729663838, guid: 09ee4d14818c1ba47b96c322e8a36f1d, type: 2} propertyPath: m_SizeDelta.x - value: 492 + value: 472.55273 objectReference: {fileID: 0} - target: {fileID: 224677791729663838, guid: 09ee4d14818c1ba47b96c322e8a36f1d, type: 2} propertyPath: m_SizeDelta.y - value: 0 + value: 152.38348 objectReference: {fileID: 0} - target: {fileID: 224143448842205196, guid: 09ee4d14818c1ba47b96c322e8a36f1d, type: 2} propertyPath: m_SizeDelta.y - value: 0 + value: -262.18887 objectReference: {fileID: 0} - target: {fileID: 224560339167716316, guid: 09ee4d14818c1ba47b96c322e8a36f1d, type: 2} propertyPath: m_SizeDelta.y - value: 0 + value: -152.38348 objectReference: {fileID: 0} m_RemovedComponents: [] m_ParentPrefab: {fileID: 100100000, guid: 09ee4d14818c1ba47b96c322e8a36f1d, type: 2} @@ -1034,7 +1034,7 @@ RectTransform: m_AnchorMin: {x: 1, y: 0} m_AnchorMax: {x: 1, y: 0} m_AnchoredPosition: {x: -750, y: 367.5} - m_SizeDelta: {x: 200, y: 100} + m_SizeDelta: {x: 150, y: 100} m_Pivot: {x: 1, y: 0} --- !u!114 &211486272 MonoBehaviour: diff --git a/Assets/Scripts/CardGameCore/CardGame.cs b/Assets/Scripts/CardGameCore/CardGame.cs index 5053f9088..2b0822fa8 100644 --- a/Assets/Scripts/CardGameCore/CardGame.cs +++ b/Assets/Scripts/CardGameCore/CardGame.cs @@ -343,8 +343,9 @@ public IEnumerator GetAndSetImageSprite(Card card) else newSprite = CardGameManager.Current.CardBackImageSprite; - foreach (CardModel cardModel in CardModels[card.Id]) - cardModel.GetComponent().sprite = newSprite; + if (CardModels.ContainsKey(card.Id)) + foreach (CardModel cardModel in CardModels[card.Id]) + cardModel.GetComponent().sprite = newSprite; Cards [card.Id].IsLoadingImage = false; } diff --git a/Assets/Scripts/DeckEditor/DeckEditorLayout.cs b/Assets/Scripts/DeckEditor/DeckEditorLayout.cs index fbd6460f8..53ba5428d 100644 Binary files a/Assets/Scripts/DeckEditor/DeckEditorLayout.cs and b/Assets/Scripts/DeckEditor/DeckEditorLayout.cs differ