Commit cddc3595 authored by mercury233's avatar mercury233 Committed by Unicorn369

don't print deck in search result

parent c8b22c33
......@@ -1831,31 +1831,20 @@ public class DeckManager : ServantWithCardDescription
{
UnityEngine.Debug.Log(e);
}
List<YGOSharp.Card> result = new List<YGOSharp.Card>();
if (side)
{
List<YGOSharp.Card> result = new List<YGOSharp.Card>();
foreach (var item in Program.I().ocgcore.sideReference)
{
result.Add(YGOSharp.CardsManager.Get(item.Value));
}
print(result);
UIHelper.trySetLableText(gameObjectSearch, "title_", result.Count.ToString());
}
else
{
foreach (var item in deck.Main)
{
result.Add(YGOSharp.CardsManager.Get(item));
}
foreach (var item in deck.Extra)
{
result.Add(YGOSharp.CardsManager.Get(item));
}
foreach (var item in deck.Side)
{
result.Add(YGOSharp.CardsManager.Get(item));
}
UIHelper.trySetLableText(gameObjectSearch, "title_", InterString.Get("在此搜索卡片,拖动加入卡组"));
}
print(result);
UIHelper.trySetLableText(gameObjectSearch, "title_", result.Count.ToString());
Program.go(50, superScrollView.toTop);
Program.go(100, superScrollView.toTop);
Program.go(200, superScrollView.toTop);
......
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