Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
PS05
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
PS05
Commits
3456ca0c
Commit
3456ca0c
authored
Dec 22, 2021
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: sbg
parent
53368db2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
hitItem.js
assets/PS05/PU20/scene/hitItem.js
+5
-5
picNode.js
assets/PS05/PU20/script/picNode.js
+4
-4
No files found.
assets/PS05/PU20/scene/hitItem.js
View file @
3456ca0c
...
@@ -45,8 +45,8 @@ cc.Class({
...
@@ -45,8 +45,8 @@ cc.Class({
},
},
onTouchStart
()
{
onTouchStart
()
{
if
(
g
.
data_mgr
.
nodPlayer
)
{
if
(
g
_ps05
.
data_mgr
.
nodPlayer
)
{
g
.
data_mgr
.
nodPlayer
.
onStopAudio
();
g
_ps05
.
data_mgr
.
nodPlayer
.
onStopAudio
();
}
}
if
(
this
.
_playing
)
return
if
(
this
.
_playing
)
return
if
(
this
.
audioId
)
return
if
(
this
.
audioId
)
return
...
@@ -54,7 +54,7 @@ cc.Class({
...
@@ -54,7 +54,7 @@ cc.Class({
if
(
!
this
.
_isComplent
)
{
if
(
!
this
.
_isComplent
)
{
this
.
db
.
node
.
active
=
true
;
this
.
db
.
node
.
active
=
true
;
this
.
playCatDragon
();
this
.
playCatDragon
();
g
.
game
.
inst
.
onBtnCheck
();
g
_ps05
.
game
.
inst
.
onBtnCheck
();
//已经完成
//已经完成
this
.
_isComplent
=
true
;
this
.
_isComplent
=
true
;
}
}
...
@@ -71,7 +71,7 @@ cc.Class({
...
@@ -71,7 +71,7 @@ cc.Class({
if
(
!
this
.
_playing
)
{
if
(
!
this
.
_playing
)
{
this
.
_playing
=
true
;
this
.
_playing
=
true
;
g
.
data_mgr
.
nodPlayer
=
this
;
g
_ps05
.
data_mgr
.
nodPlayer
=
this
;
cc
.
systemEvent
.
once
(
'
stopMusic
'
,
this
.
onStopAudio
,
this
)
cc
.
systemEvent
.
once
(
'
stopMusic
'
,
this
.
onStopAudio
,
this
)
// if (onlyOne != this) {
// if (onlyOne != this) {
// this._playing = false
// this._playing = false
...
@@ -128,7 +128,7 @@ cc.Class({
...
@@ -128,7 +128,7 @@ cc.Class({
this
.
stopAudio
()
this
.
stopAudio
()
},
},
stopAudio
()
{
stopAudio
()
{
g
.
data_mgr
.
nodPlayer
=
null
;
g
_ps05
.
data_mgr
.
nodPlayer
=
null
;
this
.
_playing
=
false
this
.
_playing
=
false
if
(
this
.
audioId
!=
null
)
{
if
(
this
.
audioId
!=
null
)
{
cc
.
audioEngine
.
stop
(
this
.
audioId
)
cc
.
audioEngine
.
stop
(
this
.
audioId
)
...
...
assets/PS05/PU20/script/picNode.js
View file @
3456ca0c
...
@@ -13,7 +13,7 @@ var picNode = cc.Class({
...
@@ -13,7 +13,7 @@ var picNode = cc.Class({
ctor
:
function
()
{
ctor
:
function
()
{
picNode
.
inst
=
this
;
picNode
.
inst
=
this
;
g
.
picNode
=
picNode
;
g
_ps05
.
picNode
=
picNode
;
},
},
onEnable
()
{
onEnable
()
{
...
@@ -24,10 +24,10 @@ var picNode = cc.Class({
...
@@ -24,10 +24,10 @@ var picNode = cc.Class({
},
},
onTouchStart
()
{
onTouchStart
()
{
if
(
g
.
data_mgr
.
nodPlayer
)
{
if
(
g
_ps05
.
data_mgr
.
nodPlayer
)
{
g
.
data_mgr
.
nodPlayer
.
onStopAudio
();
g
_ps05
.
data_mgr
.
nodPlayer
.
onStopAudio
();
}
}
g
.
speaker
.
inst
.
playEffect
(
g
.
enum
.
E_Audio
.
Error
);
g
_ps05
.
speaker
.
inst
.
playEffect
(
g_ps05
.
enum
.
E_Audio
.
Error
);
},
},
onShow
(
data
)
{
onShow
(
data
)
{
...
...
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