Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hy08_caici
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
hy08_caici
Commits
d2244c55
Commit
d2244c55
authored
Sep 08, 2023
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
cbd577e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
hy08_caici.ts
assets/hy08_caici/scene/hy08_caici.ts
+8
-8
No files found.
assets/hy08_caici/scene/hy08_caici.ts
View file @
d2244c55
...
...
@@ -124,10 +124,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
sendData
(
score
)
{
return
new
Promise
(
res
=>
{
let
upData
:
any
=
{
word_count
:
this
.
orgData
.
word_count
,
sentence_count
:
this
.
orgData
.
sentence_count
,
zi_count
:
this
.
orgData
.
zi_count
,
score
:
score
,
word_count
:
this
.
orgData
.
word_count
||
0
,
sentence_count
:
this
.
orgData
.
sentence_count
||
0
,
zi_count
:
this
.
orgData
.
zi_count
||
0
,
score
:
score
||
0
,
};
let
recordList
=
pg
.
hw
.
getRecord
();
if
(
recordList
&&
recordList
.
length
>
0
)
{
...
...
@@ -146,11 +146,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
showAni
().
then
((
coin
:
number
)
=>
{
this
.
score
=
coin
;
this
.
sendData
(
this
.
score
).
then
(()
=>
{
pg
.
event
.
once
(
'
layer_coin_show_coin_end
'
,
()
=>
{
this
.
onClose
();
})
// 动画回调
pg
.
event
.
emit
(
'
layer_coin_show_coin
'
,
coin
)
//1 2 3硬币数量
})
pg
.
event
.
once
(
'
layer_coin_show_coin_end
'
,
()
=>
{
this
.
onClose
();
})
// 动画回调
pg
.
event
.
emit
(
'
layer_coin_show_coin
'
,
coin
)
//1 2 3硬币数量
})
}
showAni
()
{
...
...
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