Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_NJ
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
middleLayer_for_NJ
Commits
99c316b4
Commit
99c316b4
authored
May 25, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
2fe97c16
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
12 deletions
+16
-12
middleLayer_for_NJ.fire
assets/middleLayer_for_NJ/scene/middleLayer_for_NJ.fire
+4
-4
middleLayer.ts
assets/middleLayer_for_NJ/script/middleLayer.ts
+12
-8
No files found.
assets/middleLayer_for_NJ/scene/middleLayer_for_NJ.fire
View file @
99c316b4
...
...
@@ -1992,12 +1992,12 @@
}
],
"_prefab": null,
"_opacity":
0
,
"_opacity":
187
,
"_color": {
"__type__": "cc.Color",
"r":
0
,
"g":
0
,
"b":
0
,
"r":
255
,
"g":
255
,
"b":
255
,
"a": 255
},
"_contentSize": {
...
...
assets/middleLayer_for_NJ/script/middleLayer.ts
View file @
99c316b4
...
...
@@ -136,16 +136,20 @@ export default class NewClass extends middleLayerBase {
initListener
()
{
const
exitBtn
=
cc
.
find
(
'
middleLayer/ExitBtn
'
);
buttonOnClick
(
exitBtn
,
()
=>
{
cc
.
find
(
'
middleLayer/BtnRight
'
).
active
=
false
;
cc
.
find
(
'
middleLayer/BtnLeft
'
).
active
=
false
;
exitBtn
.
active
=
false
;
cc
.
audioEngine
.
stopAll
();
(
<
any
>
window
).
courseware
.
freeAllOcMethod
();
this
.
loadOnlineBundle
(
'
NJ_QianShuiTing
'
);
this
.
showConfirm
(
"
还没有完成哦!确定离开吗?
"
,
()
=>
{
cc
.
find
(
'
middleLayer/BtnRight
'
).
active
=
false
;
cc
.
find
(
'
middleLayer/BtnLeft
'
).
active
=
false
;
exitBtn
.
active
=
false
;
cc
.
audioEngine
.
stopAll
();
(
<
any
>
window
).
courseware
.
freeAllOcMethod
();
this
.
loadOnlineBundle
(
'
NJ_QianShuiTing
'
);
});
});
buttonOnClick
(
cc
.
find
(
'
middleLayer/BtnRight
'
),
()
=>
{
this
.
goNextPage
();
this
.
showConfirm
(
"
还有任务没完成哦!确定跳过吗?
"
,
()
=>
{
this
.
goNextPage
();
});
});
buttonOnClick
(
cc
.
find
(
'
middleLayer/BtnLeft
'
),
()
=>
{
this
.
goPrePage
();
...
...
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