Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cake_template_test
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
cake_template_test
Commits
95813490
Commit
95813490
authored
Mar 14, 2022
by
杨一航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
a70fb9c9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
cake_template_test.ts
assets/cake_template_test/scene/cake_template_test.ts
+5
-3
No files found.
assets/cake_template_test/scene/cake_template_test.ts
View file @
95813490
...
@@ -155,6 +155,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -155,6 +155,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
excellent
.
node
.
active
=
false
;
this
.
excellent
.
node
.
active
=
false
;
this
.
nictTry
.
active
=
false
;
this
.
nictTry
.
active
=
false
;
this
.
answerNode
.
node
.
active
=
false
;
this
.
answerNode
.
node
.
active
=
false
;
this
.
node
.
getChildByName
(
"
bg
"
).
scale
=
this
.
_mapScaleMax
;
}
}
pic1
=
null
;
pic1
=
null
;
...
@@ -269,8 +271,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -269,8 +271,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
if
(
!
this
.
_cake
)
{
if
(
!
this
.
_cake
)
{
let
cake
=
cc
.
instantiate
(
this
.
cakePrefab
);
let
cake
=
cc
.
instantiate
(
this
.
cakePrefab
);
cake
.
parent
=
this
.
cakeRoot
;
cake
.
parent
=
this
.
cakeRoot
;
cake
.
y
=
100
;
cake
.
x
=
0
;
cake
.
x
=
0
;
cake
.
y
=
100
;
this
.
_cake
=
cake
.
getComponent
(
Cake
);
this
.
_cake
=
cake
.
getComponent
(
Cake
);
}
}
this
.
_nowRightIndex
=
word
.
indexOf
(
rightLetter
);
this
.
_nowRightIndex
=
word
.
indexOf
(
rightLetter
);
...
@@ -279,7 +281,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -279,7 +281,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
console
.
log
(
cakeWords
);
console
.
log
(
cakeWords
);
this
.
_cake
.
init
(
cakeWords
);
this
.
_cake
.
init
(
cakeWords
);
this
.
cakeRoot
.
y
=
-
this
.
_designSize
.
height
/
2
this
.
cakeRoot
.
y
=
0
;
this
.
cakeRoot
.
x
=
cc
.
winSize
.
width
;
this
.
cakeRoot
.
x
=
cc
.
winSize
.
width
;
this
.
cakeRoot
.
active
=
true
;
this
.
cakeRoot
.
active
=
true
;
...
@@ -383,7 +385,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -383,7 +385,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
tvRoot
.
y
=
-
cc
.
winSize
.
height
;
this
.
tvRoot
.
y
=
-
cc
.
winSize
.
height
;
this
.
tvRoot
.
x
=
0
;
this
.
tvRoot
.
x
=
0
;
this
.
tvRoot
.
active
=
true
;
this
.
tvRoot
.
active
=
true
;
await
asyncTweenTo
(
this
.
tvRoot
,
0.5
,
{
y
:
-
this
.
_designSize
.
height
/
2
});
await
asyncTweenTo
(
this
.
tvRoot
,
0.5
,
{
y
:
0
});
this
.
_txtAni
.
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
"
newAnimation
"
,
1
);
this
.
_txtAni
.
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
"
newAnimation
"
,
1
);
this
.
playAudioByUrl
(
defaultData
.
guideAudio
)
this
.
playAudioByUrl
(
defaultData
.
guideAudio
)
...
...
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