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
1ebcf8e4
Commit
1ebcf8e4
authored
May 07, 2025
by
Vũ Gia Vương
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tutorialTap
parent
386eb26f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
Events.ts
assets/scripts/Events.ts
+1
-0
TapTutorialController.ts
assets/scripts/Tutorial/TapTutorialController.ts
+3
-2
StartScreen.ts
assets/scripts/UI/StartScreen.ts
+2
-1
No files found.
assets/scripts/Events.ts
View file @
1ebcf8e4
...
...
@@ -19,6 +19,7 @@ export const PLAY_ANIM_NUT4 = 'PLAY_ANIM_NUT4';
export
const
ROTATE_GUILD
=
'ROTATE_GUILD'
;
export
const
BEAT_GUILD
=
'BEAT_GUILD'
;
export
const
STOP_GUILD_ROTATE
=
'STOP_GUILD_ROTATE'
;
export
const
START_GUILD_TAP
=
'START_GUILD_TAP'
;
export
const
STOP_GUILD_TAP
=
'STOP_GUILD_TAP'
;
export
const
CHECK_TOUCH
=
'CHECK_TOUCH'
;
...
...
assets/scripts/Tutorial/TapTutorialController.ts
View file @
1ebcf8e4
import
{
BEAT_GUILD
,
eventTarget
,
STOP_GUILD_TAP
}
from
"../Events"
;
import
{
BEAT_GUILD
,
eventTarget
,
ST
ART_GUILD_TAP
,
ST
OP_GUILD_TAP
}
from
"../Events"
;
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
...
...
@@ -9,8 +9,9 @@ export default class TapTutorialController extends cc.Component {
protected
onLoad
():
void
{
[
this
.
_hand
]
=
this
.
node
.
children
;
eventTarget
.
on
(
STOP_GUILD_TAP
,
this
.
stopGuild
,
this
);
eventTarget
.
on
(
START_GUILD_TAP
,
this
.
tutorialTap
,
this
);
this
.
tutorialTap
();
//
this.tutorialTap();
// this.tutorialTapForFragements();
}
...
...
assets/scripts/UI/StartScreen.ts
View file @
1ebcf8e4
import
{
eventTarget
,
SHOW_ACTION_SCREEN
,
SHOW_START_SCREEN
}
from
"../Events"
;
import
{
eventTarget
,
SHOW_ACTION_SCREEN
,
SHOW_START_SCREEN
,
START_GUILD_TAP
}
from
"../Events"
;
import
{
Global
}
from
"../Global"
;
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
...
...
@@ -18,6 +18,7 @@ export default class StartScreen extends cc.Component {
private
onSelectBtnClick
()
{
Global
.
tool
=
3
;
eventTarget
.
emit
(
SHOW_ACTION_SCREEN
);
eventTarget
.
emit
(
START_GUILD_TAP
);
}
...
...
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