Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP32_PLUS
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
OP32_PLUS
Commits
8f6f4d2a
Commit
8f6f4d2a
authored
Jul 13, 2022
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 找不到loadingLayer
parent
54d79287
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
OP32_PLUS.js
assets/OP32_PLUS/scene/OP32_PLUS.js
+4
-3
No files found.
assets/OP32_PLUS/scene/OP32_PLUS.js
View file @
8f6f4d2a
...
@@ -202,6 +202,7 @@ cc.Class({
...
@@ -202,6 +202,7 @@ cc.Class({
async
initView
()
{
async
initView
()
{
const
loadingLayerBase
=
cc
.
find
(
"
Canvas/bg/loadingLayerBase
"
);
const
loadingLayerBase
=
cc
.
find
(
"
Canvas/bg/loadingLayerBase
"
);
const
loadingLayerNode
=
cc
.
instantiate
(
this
.
loadingLayerProfab
);
const
loadingLayerNode
=
cc
.
instantiate
(
this
.
loadingLayerProfab
);
loadingLayerNode
.
name
=
'
loadingLayerNode
'
;
loadingLayerBase
.
addChild
(
loadingLayerNode
);
loadingLayerBase
.
addChild
(
loadingLayerNode
);
this
.
loadingLayer
=
loadingLayerNode
.
getComponent
(
"
LoadingLayer
"
);
this
.
loadingLayer
=
loadingLayerNode
.
getComponent
(
"
LoadingLayer
"
);
...
@@ -437,8 +438,9 @@ cc.Class({
...
@@ -437,8 +438,9 @@ cc.Class({
headUrl
:
player
.
headUrl
,
headUrl
:
player
.
headUrl
,
});
});
}
}
console
.
log
(
'
this.loadingLayer.addPlayer
'
);
const
loadingLayerNode
=
cc
.
find
(
'
Canvas/bg/loadingLayerBase/loadingLayerNode
'
);
this
.
loadingLayer
.
addPlayer
(
const
loadingLayer
=
loadingLayerNode
.
getComponent
(
'
LoadingLayer
'
)
loadingLayer
.
addPlayer
(
player
.
name
,
player
.
name
,
player
.
uuid
==
this
.
playerId
,
player
.
uuid
==
this
.
playerId
,
player
.
headUrl
,
player
.
headUrl
,
...
@@ -484,7 +486,6 @@ cc.Class({
...
@@ -484,7 +486,6 @@ cc.Class({
this
.
isRoomOwner
=
true
;
this
.
isRoomOwner
=
true
;
this
.
server
=
new
GameServer
(
5
,
this
.
networkHelper
);
this
.
server
=
new
GameServer
(
5
,
this
.
networkHelper
);
await
this
.
networkHelper
.
startFrameSync
();
await
this
.
networkHelper
.
startFrameSync
();
console
.
log
(
'
this.server.addPlayer
'
);
this
.
server
.
addPlayer
({
this
.
server
.
addPlayer
({
uuid
:
this
.
playerId
,
uuid
:
this
.
playerId
,
isAI
:
false
,
isAI
:
false
,
...
...
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