Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
unit_demo
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
unit_demo
Commits
be9cc5d0
Commit
be9cc5d0
authored
Jun 16, 2021
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: length -> starLength
parent
d76f8c77
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
demo_02_scoreStars.js
play/assets/tmpGame/scene/demo_02_scoreStars.js
+5
-5
demo_03_fireworks_2.js
play/assets/tmpGame/scene/demo_03_fireworks_2.js
+0
-1
No files found.
play/assets/tmpGame/scene/demo_02_scoreStars.js
View file @
be9cc5d0
...
@@ -22,13 +22,13 @@ cc.Class({
...
@@ -22,13 +22,13 @@ cc.Class({
BtnShowStar
.
on
(
'
click
'
,
this
.
showStar
.
bind
(
this
));
BtnShowStar
.
on
(
'
click
'
,
this
.
showStar
.
bind
(
this
));
},
},
length
,
starLength
:
null
,
addStar
()
{
addStar
()
{
if
(
!
this
.
l
ength
)
{
if
(
!
this
.
starL
ength
)
{
this
.
l
ength
=
0
;
this
.
starL
ength
=
0
;
}
}
this
.
l
ength
++
;
this
.
starL
ength
++
;
let
length
=
this
.
l
ength
;
let
length
=
this
.
starL
ength
;
const
starLayout
=
cc
.
find
(
'
Canvas/layout
'
);
const
starLayout
=
cc
.
find
(
'
Canvas/layout
'
);
starLayout
.
removeAllChildren
();
starLayout
.
removeAllChildren
();
...
...
play/assets/tmpGame/scene/demo_03_fireworks_2.js
View file @
be9cc5d0
...
@@ -98,7 +98,6 @@ cc.Class({
...
@@ -98,7 +98,6 @@ cc.Class({
})
})
.
start
();
.
start
();
return
quadBase
;
return
quadBase
;
},
},
});
});
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