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
ae8bab5a
Commit
ae8bab5a
authored
May 07, 2025
by
Vũ Gia Vương
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix block input event
parent
7273b42a
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
81 additions
and
127 deletions
+81
-127
main.fire
assets/main.fire
+80
-123
BreakingJarController.ts
assets/scripts/GamePlay/BreakingJarController.ts
+1
-0
HuController.ts
assets/scripts/GamePlay/HuController.ts
+0
-4
No files found.
assets/main.fire
View file @
ae8bab5a
This diff is collapsed.
Click to expand it.
assets/scripts/GamePlay/BreakingJarController.ts
View file @
ae8bab5a
...
...
@@ -184,6 +184,7 @@ export default class BreakingJarController extends cc.Component {
}
private
onTouchStart
(
event
:
cc
.
Event
.
EventTouch
)
{
console
.
log
(
'onTouchStart'
,
1
)
eventTarget
.
emit
(
STOP_GUILD_TAP
);
const
pos
=
event
.
getLocation
();
const
nodePos
=
this
.
node
.
convertToNodeSpaceAR
(
pos
);
...
...
assets/scripts/GamePlay/HuController.ts
View file @
ae8bab5a
...
...
@@ -5,7 +5,6 @@ const { ccclass, property } = cc._decorator;
@
ccclass
export
default
class
HuController
extends
cc
.
Component
{
private
_spine
:
sp
.
Skeleton
=
null
;
private
_x
:
number
=
0
;
private
_y
:
number
=
0
;
private
_z
:
number
=
0
;
...
...
@@ -14,7 +13,6 @@ export default class HuController extends cc.Component {
private
_debug
:
cc
.
Label
=
null
;
protected
onLoad
():
void
{
this
.
_spine
=
this
.
node
.
getComponent
(
sp
.
Skeleton
);
this
.
_debug
=
this
.
node
.
getComponentInChildren
(
cc
.
Label
);
if
(
cc
.
sys
.
os
===
cc
.
sys
.
OS_IOS
)
{
...
...
@@ -23,8 +21,6 @@ export default class HuController extends cc.Component {
else
{
this
.
scheduleOnce
(
this
.
setDeviceMotion
,
2
);
}
this
.
_spine
.
timeScale
=
0
;
}
private
setDeviceMotionIOS
()
{
...
...
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