Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOProUnity_V2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
perfectdicky
YGOProUnity_V2
Commits
9a9d08c9
Commit
9a9d08c9
authored
Apr 10, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't print deck in search result
parent
08460702
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
15 deletions
+4
-15
Assets/SibylSystem/deckManager/DeckManager.cs
Assets/SibylSystem/deckManager/DeckManager.cs
+4
-15
No files found.
Assets/SibylSystem/deckManager/DeckManager.cs
View file @
9a9d08c9
...
...
@@ -1802,31 +1802,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
));
UIHelper
.
trySetLableText
(
gameObjectSearch
,
"title_"
,
InterString
.
Get
(
"在此搜索卡片,拖动加入卡组"
));
}
foreach
(
var
item
in
deck
.
Extra
)
{
result
.
Add
(
YGOSharp
.
CardsManager
.
Get
(
item
));
}
foreach
(
var
item
in
deck
.
Side
)
{
result
.
Add
(
YGOSharp
.
CardsManager
.
Get
(
item
));
}
}
print
(
result
);
UIHelper
.
trySetLableText
(
gameObjectSearch
,
"title_"
,
result
.
Count
.
ToString
());
Program
.
go
(
50
,
superScrollView
.
toTop
);
Program
.
go
(
100
,
superScrollView
.
toTop
);
Program
.
go
(
200
,
superScrollView
.
toTop
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment