Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
W
wdlc_mjb_unity
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王雪伟
wdlc_mjb_unity
Commits
056ea63f
Commit
056ea63f
authored
Jul 03, 2021
by
LiLiuZhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
9248f9d5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
LeeMainController.cs
Assets/Game/Main/Resource/LeeScripts/LeeMainController.cs
+9
-11
No files found.
Assets/Game/Main/Resource/LeeScripts/LeeMainController.cs
View file @
056ea63f
...
@@ -70,8 +70,6 @@ public class LeeMainController : MonoBehaviour
...
@@ -70,8 +70,6 @@ public class LeeMainController : MonoBehaviour
return
;
return
;
}
}
for
(
int
i
=
0
;
i
<
model
.
wdDataList
.
Count
;
i
++)
for
(
int
i
=
0
;
i
<
model
.
wdDataList
.
Count
;
i
++)
{
{
GameObject
obj
=
GameObject
.
Instantiate
(
Resources
.
Load
<
GameObject
>(
"Cell"
),
Content
);
GameObject
obj
=
GameObject
.
Instantiate
(
Resources
.
Load
<
GameObject
>(
"Cell"
),
Content
);
...
@@ -92,16 +90,16 @@ public class LeeMainController : MonoBehaviour
...
@@ -92,16 +90,16 @@ public class LeeMainController : MonoBehaviour
{
{
Transform
Content
=
ZhongCaiTiXian
.
Find
(
"MainBK/SV/Viewport/Content"
);
Transform
Content
=
ZhongCaiTiXian
.
Find
(
"MainBK/SV/Viewport/Content"
);
List
<
Transform
>
ChildList
=
new
List
<
Transform
>();
//
List<Transform> ChildList = new List<Transform>();
for
(
int
i
=
0
;
i
<
Content
.
childCount
;
i
++)
//
for (int i = 0; i < Content.childCount; i++)
{
//
{
ChildList
.
Add
(
Content
.
GetChild
(
i
));
//
ChildList.Add(Content.GetChild(i));
}
//
}
for
(
int
i
=
0
;
i
<
ChildList
.
Count
;
i
++)
//
for (int i = 0; i < ChildList.Count; i++)
{
//
{
Destroy
(
ChildList
[
i
].
gameObject
);
//
Destroy(ChildList[i].gameObject);
}
//
}
ZhongCaiTiXian
.
gameObject
.
SetActive
(
false
);
ZhongCaiTiXian
.
gameObject
.
SetActive
(
false
);
...
...
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