Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MingSnake_241120
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
MingSnake_241120
Commits
e74ef7e0
Commit
e74ef7e0
authored
Dec 23, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
0f6d5422
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Target.ts
assets/Scripts/Scenes/MainGame/Components/Target.ts
+4
-4
No files found.
assets/Scripts/Scenes/MainGame/Components/Target.ts
View file @
e74ef7e0
...
...
@@ -101,7 +101,7 @@ export class Target extends Component {
start
()
{
}
async
showBanner
(
bannerNode
:
Node
)
{
async
showBanner
(
bannerNode
:
Node
,
t
:
number
=
2.666
)
{
await
new
Promise
<
void
>
((
resolve
)
=>
{
bannerNode
.
active
=
true
;
this
.
bannerBg
.
active
=
false
;
...
...
@@ -121,8 +121,8 @@ export class Target extends Component {
.
start
();
tween
(
this
.
banner
)
.
delay
(
2.666
)
.
to
(
0.
666
,
{
.
delay
(
t
)
.
to
(
0.
5
,
{
position
:
v3
(
0
,
345
,
0
),
scale
:
v3
(
0.15
,
0.15
,
1
)
},
{
easing
:
easing
.
quadInOut
})
...
...
@@ -140,7 +140,7 @@ export class Target extends Component {
async
showTarget3
()
{
this
.
showTopCard
()
await
this
.
showBanner
(
this
.
bannerArr
[
2
]);
await
this
.
showBanner
(
this
.
bannerArr
[
2
]
,
1
);
}
async
showTarget2
()
{
...
...
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