Commit 42b6eb80 authored by mercury233's avatar mercury233 Committed by Unicorn369

fix deckDirty when begin dragging

parent 82b6d5ae
...@@ -1320,7 +1320,6 @@ public class DeckManager : ServantWithCardDescription ...@@ -1320,7 +1320,6 @@ public class DeckManager : ServantWithCardDescription
card.cardData = cardPicLoader_.data; card.cardData = cardPicLoader_.data;
card.gameObject.layer = 16; card.gameObject.layer = 16;
deck.IMain.Add(card); deck.IMain.Add(card);
deckDirty = true;
cardInDragging = card; cardInDragging = card;
card.beginDrag(); card.beginDrag();
} }
...@@ -1339,6 +1338,7 @@ public class DeckManager : ServantWithCardDescription ...@@ -1339,6 +1338,7 @@ public class DeckManager : ServantWithCardDescription
} }
else else
{ {
if (cardInDragging.getIfAlive())
deckDirty = true; deckDirty = true;
ArrangeObjectDeck(true); ArrangeObjectDeck(true);
ShowObjectDeck(); ShowObjectDeck();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment