Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_debug
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_debug
Commits
801c7a3d
Commit
801c7a3d
authored
Apr 18, 2022
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 新增接口
parent
10f562d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
middleLayer.js
assets/middleLayer_for_debug/script/middleLayer.js
+11
-4
No files found.
assets/middleLayer_for_debug/script/middleLayer.js
View file @
801c7a3d
import
{
initAir
}
from
'
./air
'
;
import
{
initAir
}
from
'
./air
'
;
cc
.
Class
({
cc
.
Class
({
extends
:
cc
.
Component
,
extends
:
cc
.
Component
,
...
@@ -316,6 +315,14 @@ cc.Class({
...
@@ -316,6 +315,14 @@ cc.Class({
callback
(
'
关卡未解锁!
'
);
callback
(
'
关卡未解锁!
'
);
}
}
break
;
break
;
case
'
NS_select_event
'
:
this
.
showLog
(
'
选择活动:
'
+
data
.
eventId
);
callback
(
'
选择活动:
'
+
data
.
eventId
);
break
;
case
'
NS_select_game
'
:
this
.
showLog
(
'
选择游戏:
'
+
data
.
gameId
);
callback
(
'
选择游戏:
'
+
data
.
gameId
);
break
;
default
:
default
:
this
.
showLog
(
'
未定义接口:
'
+
apiName
);
this
.
showLog
(
'
未定义接口:
'
+
apiName
);
break
;
break
;
...
@@ -717,9 +724,9 @@ cc.Class({
...
@@ -717,9 +724,9 @@ cc.Class({
const
laodingLayer
=
cc
.
find
(
'
middleLayer/loadingLayer
'
);
const
laodingLayer
=
cc
.
find
(
'
middleLayer/loadingLayer
'
);
laodingLayer
.
active
=
true
;
laodingLayer
.
active
=
true
;
const
loading
=
cc
.
find
(
'
middleLayer/loadingLayer/loading
'
);
//
const loading = cc.find('middleLayer/loadingLayer/loading');
const
anim
=
loading
.
getComponent
(
cc
.
Animation
)
//
const anim = loading.getComponent(cc.Animation)
anim
.
play
(
'
loading
'
)
//
anim.play('loading')
const
script
=
cc
.
find
(
'
middleLayer/loadingLayer/progress
'
).
getComponent
(
'
progressScript
'
);
const
script
=
cc
.
find
(
'
middleLayer/loadingLayer/progress
'
).
getComponent
(
'
progressScript
'
);
script
.
setProgress
(
0
);
script
.
setProgress
(
0
);
...
...
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