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
8dc24976
Commit
8dc24976
authored
Mar 31, 2025
by
Vũ Gia Vương
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix relay
parent
e42f321e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
4 deletions
+11
-4
Chum.json
assets/resources/Anim_MB/Chum.json
+2
-1
Events.ts
assets/scripts/Events.ts
+1
-0
BuaController.ts
assets/scripts/GamePlay/BuaController.ts
+0
-1
ChumController.ts
assets/scripts/GamePlay/ChumController.ts
+6
-1
CardPopup.ts
assets/scripts/UI/CardPopup.ts
+2
-1
No files found.
assets/resources/Anim_MB/Chum.json
View file @
8dc24976
...
...
@@ -2122,6 +2122,7 @@
]
}
}
}
},
"default"
:{}
}
}
\ No newline at end of file
assets/scripts/Events.ts
View file @
8dc24976
...
...
@@ -4,4 +4,5 @@ export const SHOW_ACTION_SCREEN = 'SHOW_ACTION_SCREEN';
export
const
SHOW_START_SCREEN
=
'SHOW_START_SCREEN'
;
export
const
SHOW_CARD_POPUP
=
'SHOW_CARD_POPUP'
;
export
const
STOP_ANIM_CHUM
=
'STOP_ANIM_CHUM'
;
export
const
SHOW_SELECT_POPUP
=
'SHOW_SELECT_POPUP'
;
\ No newline at end of file
assets/scripts/GamePlay/BuaController.ts
View file @
8dc24976
...
...
@@ -28,7 +28,6 @@ export default class BuaController extends cc.Component {
}
public
onSetTool
()
{
console
.
log
(
'onSetTool'
,
)
this
.
spine
.
setSkin
(
this
.
_skins
[
Global
.
tool
%
this
.
_skins
.
length
])
}
...
...
assets/scripts/GamePlay/ChumController.ts
View file @
8dc24976
import
{
eventTarget
,
SHOW_ACTION_SCREEN
}
from
"../Events"
;
import
{
eventTarget
,
SHOW_ACTION_SCREEN
,
STOP_ANIM_CHUM
}
from
"../Events"
;
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
...
...
@@ -15,6 +15,7 @@ export default class ChumController extends cc.Component {
this
.
node
.
on
(
cc
.
Node
.
EventType
.
TOUCH_START
,
this
.
onTouchStart
,
this
);
this
.
_actions
=
[
this
.
playAnimationNut1
,
this
.
playAnimationNut2
,
this
.
playAnimationNut3
,
this
.
playAnimationNut4
];
eventTarget
.
on
(
STOP_ANIM_CHUM
,
this
.
stopAnimation
,
this
);
}
private
onTouchStart
():
void
{
...
...
@@ -22,6 +23,10 @@ export default class ChumController extends cc.Component {
// this._count = (this._count + 1) % this._actions.length;
}
private
stopAnimation
():
void
{
this
.
spine
.
setAnimation
(
0
,
"default"
,
true
);
}
public
playAnimationNut1
():
void
{
this
.
spine
.
setAnimation
(
0
,
"nut1"
,
true
);
this
.
spine
.
timeScale
=
1
;
...
...
assets/scripts/UI/CardPopup.ts
View file @
8dc24976
import
{
eventTarget
,
SHOW_CARD_POPUP
}
from
"../Events"
;
import
{
eventTarget
,
SHOW_CARD_POPUP
,
STOP_ANIM_CHUM
}
from
"../Events"
;
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
...
...
@@ -25,5 +25,6 @@ export default class CardPopup extends cc.Component {
private
onReplayBtnClick
()
{
this
.
node
.
active
=
false
;
eventTarget
.
emit
(
STOP_ANIM_CHUM
);
}
}
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