Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
new_taobao
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
wildfirecode13
new_taobao
Commits
48fbe764
Commit
48fbe764
authored
Sep 21, 2020
by
Edwise
🍷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11234
parent
a7a6172d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
Cat.ts
project/src/canvas/game/src/cat/Cat.ts
+2
-1
MainSceneBtnUi.ts
project/src/canvas/game/src/ui/MainSceneBtnUi.ts
+9
-0
No files found.
project/src/canvas/game/src/cat/Cat.ts
View file @
48fbe764
...
...
@@ -31,7 +31,7 @@ export class Cat extends Module {
super
(
data
);
this
.
catType
=
data
.
type
;
}
catType
:
any
;
cat_sleep
:
FYGE
.
Lottie
;
//睡觉
cat_talk
:
FYGE
.
Lottie
;
//说话
...
...
@@ -125,6 +125,7 @@ export class Cat extends Module {
this
.
catAnimArr
[
i
].
visible
=
true
;
let
loop
=
callback
?
1
:
0
;
console
.
log
(
"hahaha"
,
loop
)
this
.
catAnimArr
[
i
].
stop
();
this
.
catAnimArr
[
i
].
play
(
loop
,
callback
)
console
.
log
(
"播放"
,
index
)
}
else
{
...
...
project/src/canvas/game/src/ui/MainSceneBtnUi.ts
View file @
48fbe764
...
...
@@ -160,6 +160,15 @@ export class MainSceneBtnUi extends Module{
case
that
.
playBtn
:
that
.
catPlay
();
break
;
case
that
.
combingBtn
:
that
.
catClear
();
break
;
case
that
.
catBtn
:
that
.
catRua
();
break
;
case
that
.
touchHeadBtn
:
that
.
catTouch
();
break
;
case
that
.
strategyBtn
:
that
.
openStrategy
();
break
;
...
...
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