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
38ee890f
Commit
38ee890f
authored
Mar 16, 2022
by
杨一航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
f0414dae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
cake_template_test.ts
assets/cake_template_test/scene/cake_template_test.ts
+4
-5
No files found.
assets/cake_template_test/scene/cake_template_test.ts
View file @
38ee890f
...
...
@@ -2,7 +2,6 @@ import { asyncDelay, asyncLoadDragonBoneAnime, asyncTweenBy, asyncTweenTo, onHom
import
{
MyCocosSceneComponent
}
from
"
../script/MyCocosSceneComponent
"
;
import
Cake
from
"
../prefabs/Cake
"
;
import
AudioButton
from
"
../script/AudioButton
"
;
import
{
defaultData
}
from
"
../script/defaultData
"
;
import
ChoseNode
from
"
../prefabs/choseNode
"
;
import
CakeBar
from
"
../prefabs/CakeBar
"
;
import
AudioBar
from
"
../prefabs/AudioBar
"
;
...
...
@@ -129,7 +128,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
async
initData
()
{
// 所有全局变量 默认都是null
this
.
_cantouch
=
true
;
this
.
_totalQuestion
=
defaultD
ata
.
questions
.
length
;
this
.
_totalQuestion
=
this
.
d
ata
.
questions
.
length
;
this
.
_wrongQuestion
=
0
;
...
...
@@ -149,7 +148,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
cover
.
active
=
true
;
this
.
cakeRoot
.
active
=
false
;
this
.
cakePiece
.
active
=
false
this
.
title
.
string
=
defaultD
ata
.
title
;
this
.
title
.
string
=
this
.
d
ata
.
title
;
this
.
tvRoot
.
active
=
false
;
this
.
candleRoot
.
active
=
false
;
this
.
excellent
.
node
.
active
=
false
;
...
...
@@ -242,7 +241,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
_txtAni
=
null
;
}
this
.
_nowData
=
defaultD
ata
.
questions
[
this
.
_questionIndex
];
this
.
_nowData
=
this
.
d
ata
.
questions
[
this
.
_questionIndex
];
this
.
initNodes
(
this
.
_nowData
);
// this.testDragonB();
...
...
@@ -388,7 +387,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
await
asyncTweenTo
(
this
.
tvRoot
,
0.5
,
{
y
:
0
});
this
.
_txtAni
.
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
"
newAnimation
"
,
1
);
this
.
playAudioByUrl
(
defaultD
ata
.
guideAudio
)
this
.
playAudioByUrl
(
this
.
d
ata
.
guideAudio
)
this
.
candleRoot
.
x
=
-
cc
.
winSize
.
width
;
this
.
candleRoot
.
active
=
true
;
...
...
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