Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
East_L226
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
East_L226
Commits
5dfd8f36
Commit
5dfd8f36
authored
Jul 10, 2020
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev commit
parent
8ce2c61f
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
142 additions
and
112 deletions
+142
-112
Unit.ts
src/app/play/Unit.ts
+2
-0
play.component.ts
src/app/play/play.component.ts
+140
-112
No files found.
src/app/play/Unit.ts
View file @
5dfd8f36
...
@@ -141,6 +141,8 @@ export class MySprite extends Sprite {
...
@@ -141,6 +141,8 @@ export class MySprite extends Sprite {
const
index
=
this
.
children
.
indexOf
(
child
);
const
index
=
this
.
children
.
indexOf
(
child
);
if
(
index
!==
-
1
)
{
if
(
index
!==
-
1
)
{
this
.
children
.
splice
(
index
,
1
);
this
.
children
.
splice
(
index
,
1
);
}
else
{
console
.
warn
(
"
Can not delete child!
"
)
}
}
}
}
...
...
src/app/play/play.component.ts
View file @
5dfd8f36
This diff is collapsed.
Click to expand it.
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