Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP71_1
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
OP71_1
Commits
34306f97
Commit
34306f97
authored
Nov 29, 2022
by
Chen Jiping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:延时调整
parent
8f011bfb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
5 deletions
+18
-5
OP71_1.ts
assets/OP71_1/scene/OP71_1.ts
+8
-1
Cat.ts
assets/OP71_1/script/Cat.ts
+3
-1
Entites.ts
assets/OP71_1/script/Entites.ts
+4
-2
PicArea.ts
assets/OP71_1/script/PicArea.ts
+3
-1
No files found.
assets/OP71_1/scene/OP71_1.ts
View file @
34306f97
...
...
@@ -87,7 +87,14 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
protected
onDestroy
():
void
{
cc
.
Tween
.
stopAll
();
if
(
this
.
cat
){
for
(
let
i
=
0
;
i
<
this
.
cat
.
delayArr
.
length
;
++
i
){
let
tween
=
this
.
cat
.
delayArr
[
i
];
tween
&&
tween
.
stop
();
}
}
}
_cantouch
=
null
;
...
...
assets/OP71_1/script/Cat.ts
View file @
34306f97
import
SceneComponent
from
"
../scene/OP71
"
;
import
SceneComponent
from
"
../scene/OP71
_1
"
;
import
{
Item
}
from
"
./Item
"
;
export
class
Cat
extends
Item
{
...
...
@@ -12,6 +12,8 @@ export class Cat extends Item {
*/
private
_standby
=
false
;
delayArr
:
Array
<
cc
.
Tween
>
=
[];
set
standby
(
standby
:
boolean
)
{
this
.
_standby
=
standby
;
}
...
...
assets/OP71_1/script/Entites.ts
View file @
34306f97
...
...
@@ -147,7 +147,8 @@ export class Word extends Item {
console
.
log
(
timeout
,
duration
)
delayCall
(
timeout
+
1
,
callback
);
let
tween
=
delayCall
(
timeout
+
1
,
callback
);
this
.
_cat
.
delayArr
.
push
(
tween
);
}
}
...
...
@@ -382,7 +383,8 @@ export class Word2 extends Item {
timeout
=
duration
;
}
delayCall
(
timeout
+
1
,
callback
);
let
tween
=
delayCall
(
timeout
+
1
,
callback
);
this
.
_cat
.
delayArr
.
push
(
tween
);
}
}
...
...
assets/OP71_1/script/PicArea.ts
View file @
34306f97
...
...
@@ -149,7 +149,9 @@ import { delayCall, getSprNodeByUrl, playAudio } from "./util";
timeout
=
duration
;
}
delayCall
(
timeout
,
callback
)
let
tween
=
delayCall
(
timeout
,
callback
)
this
.
_cat
.
delayArr
.
push
(
tween
);
}
}
}
\ No newline at end of file
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