Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OPW_BoardGame_L5R4
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
OPW_BoardGame_L5R4
Commits
65cc1480
Commit
65cc1480
authored
Dec 15, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 添加成绩上报
parent
fc7f4769
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
OPW_BoardGame_L5R4.ts
assets/OPW_BoardGame_L5R4/scene/OPW_BoardGame_L5R4.ts
+13
-1
tsconfig.json
tsconfig.json
+3
-1
No files found.
assets/OPW_BoardGame_L5R4/scene/OPW_BoardGame_L5R4.ts
View file @
65cc1480
...
...
@@ -888,7 +888,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
// 初始化转盘
turntable
:
null
;
turntable
=
null
;
initTurntable
()
{
this
.
turntable
=
cc
.
find
(
"
Canvas/Turntable
"
).
getComponent
(
"
Turntable
"
);
this
.
turntable
.
initTurntable
(
DEBUG
);
...
...
@@ -1106,9 +1106,21 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
redPlayerHomeNode
.
active
=
false
;
this
.
bluePlayerHomeNode
.
active
=
false
;
cc
.
find
(
"
Canvas/finishLayer
"
).
active
=
true
;
// 上报游戏结束标识
this
.
finish
();
})
}
isFinished
=
false
;
finish
()
{
if
(
this
.
isFinished
)
{
return
;
}
this
.
isFinished
=
true
;
onHomeworkFinish
();
}
async
onAiEvents
(
event
)
{
// 当有AI玩家的时候 需要处理这部分逻辑
switch
(
event
.
type
)
{
...
...
tsconfig.json
View file @
65cc1480
...
...
@@ -15,6 +15,8 @@
"local"
,
"temp"
,
"build"
,
"settings"
"settings"
,
"form"
,
"form_angular"
]
}
\ No newline at end of file
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