Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
interactiveGames_Level
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xuxing@jiuaoedu.com
interactiveGames_Level
Commits
5b665696
Commit
5b665696
authored
Apr 07, 2022
by
徐行
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
结束传出数据
parent
8be14c7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
VHFillNumCtr.ts
assets/sceneBundle/games/VHFillNum/script/VHFillNumCtr.ts
+14
-0
No files found.
assets/sceneBundle/games/VHFillNum/script/VHFillNumCtr.ts
View file @
5b665696
...
@@ -5,6 +5,7 @@ import { AudioMgr } from '../../../../startFolder/script/common/AudioMgr';
...
@@ -5,6 +5,7 @@ import { AudioMgr } from '../../../../startFolder/script/common/AudioMgr';
import
{
Utils
}
from
'../../../../startFolder/script/common/Utils'
;
import
{
Utils
}
from
'../../../../startFolder/script/common/Utils'
;
import
{
VIEW_DEF
}
from
'../../../../startFolder/script/common/ViewDef'
;
import
{
VIEW_DEF
}
from
'../../../../startFolder/script/common/ViewDef'
;
import
{
viewMgr
,
VIEW_INDEX
}
from
'../../../../startFolder/script/common/ViewMgr'
;
import
{
viewMgr
,
VIEW_INDEX
}
from
'../../../../startFolder/script/common/ViewMgr'
;
import
{
GameEndDataItf
,
GameEndDataItf_1
,
htmlSendDataMgr
}
from
'../../../../startFolder/script/HtmlSendDataMgr'
;
import
{
BeginCountdownView
}
from
'../../commonView/script/BeginCountdownView'
;
import
{
BeginCountdownView
}
from
'../../commonView/script/BeginCountdownView'
;
import
{
ChallengeSuccView
}
from
'../../commonView/script/ChallengeSuccView'
;
import
{
ChallengeSuccView
}
from
'../../commonView/script/ChallengeSuccView'
;
import
{
GameDescView
}
from
'../../commonView/script/GameDescView'
;
import
{
GameDescView
}
from
'../../commonView/script/GameDescView'
;
...
@@ -277,6 +278,19 @@ export class VHFillNumCtr extends Component {
...
@@ -277,6 +278,19 @@ export class VHFillNumCtr extends Component {
node
.
getComponent
(
ScoreFailView
)?.
setData
(
1
,
"C"
);
node
.
getComponent
(
ScoreFailView
)?.
setData
(
1
,
"C"
);
},
VIEW_INDEX
.
TOP
);
},
VIEW_INDEX
.
TOP
);
}
}
//把数据发给包裹游戏的容器
let
score
=
Math
.
floor
(
this
.
totalTime
-
this
.
costTime
);
let
sendOutData
:
GameEndDataItf_1
=
{
gameId
:
2222222
,
gameScore
:
score
<
0
?
0
:
score
,
gameEvaluation
:
this
.
getGrade
(),
durTime
:
Math
.
floor
(
this
.
costTime
*
1000
),
totalTime
:
Math
.
floor
(
this
.
costTime
*
1000
),
finishRate
:
score
<
0
?
0
:
score
,
type
:
"cocos_game"
}
htmlSendDataMgr
.
sendDataOut
(
JSON
.
stringify
(
sendOutData
));
//************************** */
}
}
getGrade
()
{
getGrade
()
{
...
...
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