Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dap-hu
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
Vũ Gia Vương
dap-hu
Commits
5165324e
Commit
5165324e
authored
Mar 31, 2025
by
Vũ Gia Vương
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update anim the
parent
8b46d24e
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
605 additions
and
3 deletions
+605
-3
main.fire
assets/main.fire
+1
-1
The.json
assets/resources/Anim_MB/The.json
+588
-1
BuaController.ts
assets/scripts/GamePlay/BuaController.ts
+2
-1
TheController.ts
assets/scripts/GamePlay/TheController.ts
+14
-0
No files found.
assets/main.fire
View file @
5165324e
...
...
@@ -3187,7 +3187,7 @@
"ctor": "Float64Array",
"array": [
0,
0,
-20
0,
0,
0,
0,
...
...
assets/resources/Anim_MB/The.json
View file @
5165324e
This diff is collapsed.
Click to expand it.
assets/scripts/GamePlay/BuaController.ts
View file @
5165324e
...
...
@@ -67,10 +67,11 @@ export default class BuaController extends cc.Component {
},
0.2
)
cc
.
tween
(
this
.
node
)
.
by
(
0.5
,
{
position
:
cc
.
v3
(
1000
,)
}
)
.
delay
(
0.5
)
.
call
(()
=>
{
eventTarget
.
emit
(
SHOW_CARD_POPUP
);
})
.
by
(
0.5
,
{
position
:
cc
.
v3
(
1000
,)
})
.
start
();
}
...
...
assets/scripts/GamePlay/TheController.ts
View file @
5165324e
...
...
@@ -5,4 +5,18 @@ const { ccclass, property } = cc._decorator;
@
ccclass
export
default
class
TheController
extends
cc
.
Component
{
private
_spine
:
sp
.
Skeleton
=
null
;
protected
onLoad
():
void
{
this
.
_spine
=
this
.
node
.
getComponent
(
sp
.
Skeleton
);
this
.
_spine
.
setCompleteListener
((
trackEntry
)
=>
{
if
(
trackEntry
.
animation
.
name
==
'Open'
)
{
this
.
_spine
.
setAnimation
(
0
,
'Idle'
,
true
);
console
.
log
(
'Idle'
,
)
}
})
}
protected
onEnable
():
void
{
this
.
_spine
.
setAnimation
(
0
,
'Open'
,
false
);
}
}
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