Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
L4R4
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
L4R4
Commits
6c435b0f
Commit
6c435b0f
authored
Nov 10, 2022
by
杨一航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
645893b9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
L4R4.ts
assets/L4R4/scene/L4R4.ts
+9
-0
No files found.
assets/L4R4/scene/L4R4.ts
View file @
6c435b0f
...
@@ -44,6 +44,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -44,6 +44,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
private
_redDot
:
cc
.
Node
;
private
_redDot
:
cc
.
Node
;
private
_blueDot
:
cc
.
Node
;
private
_blueDot
:
cc
.
Node
;
private
_lastIndex
:
any
;
private
_lastIndex
:
any
;
private
_checkLast
:
boolean
;
addPreloadImage
()
{
addPreloadImage
()
{
...
@@ -312,6 +313,12 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -312,6 +313,12 @@ export default class SceneComponent extends MyCocosSceneComponent {
catAni
(
playAudio
?)
{
catAni
(
playAudio
?)
{
let
state
=
this
.
_status
.
state
let
state
=
this
.
_status
.
state
if
(
this
.
_checkLast
)
{
this
.
_checkLast
=
false
this
.
cat
.
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
"
normal
"
,
0
);
return
}
if
(
!
this
.
isMySide
)
{
if
(
!
this
.
isMySide
)
{
this
.
cat
.
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
"
begin
"
,
0
);
this
.
cat
.
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
"
begin
"
,
0
);
...
@@ -680,6 +687,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -680,6 +687,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
if
(
isRight
)
{
if
(
isRight
)
{
if
(
this
.
isMySide
)
{
if
(
this
.
isMySide
)
{
this
.
_checkLast
=
true
this
.
cat
.
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
"
right
"
,
1
);
this
.
cat
.
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
"
right
"
,
1
);
}
}
...
@@ -691,6 +699,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -691,6 +699,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
else
{
}
else
{
if
(
this
.
isMySide
)
{
if
(
this
.
isMySide
)
{
this
.
_checkLast
=
true
this
.
cat
.
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
"
wrong
"
,
1
);
this
.
cat
.
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
"
wrong
"
,
1
);
}
}
}
}
...
...
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