Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
op68_plus_new
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
template admin
op68_plus_new
Commits
2d362bb8
Commit
2d362bb8
authored
Dec 02, 2022
by
yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
cfa8eccf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
op68_plus_new.ts
assets/op68_plus_new/scene/op68_plus_new.ts
+7
-3
server_op68_plus_new.ts.meta
assets/op68_plus_new/scene/server_op68_plus_new.ts.meta
+1
-1
No files found.
assets/op68_plus_new/scene/op68_plus_new.ts
View file @
2d362bb8
...
@@ -235,6 +235,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -235,6 +235,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
}
private
onTouchCancel
(
e
)
{
private
onTouchCancel
(
e
)
{
if
(
!
this
.
isClick
||
!
this
.
touching
)
return
;
let
target
:
cc
.
Node
=
e
.
target
;
let
target
:
cc
.
Node
=
e
.
target
;
let
question
=
Game
.
getIns
().
getCurrentPage
();
let
question
=
Game
.
getIns
().
getCurrentPage
();
this
.
playWrongAudio
();
this
.
playWrongAudio
();
...
@@ -245,21 +246,24 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -245,21 +246,24 @@ export default class SceneComponent extends MyCocosSceneComponent {
target
.
setPosition
(
0
,
0
);
target
.
setPosition
(
0
,
0
);
}
}
private
isClick
;
private
isClick
;
private
touching
;
private
onTouchStart
(
e
)
{
private
onTouchStart
(
e
)
{
if
(
!
this
.
isClick
)
return
;
if
(
!
this
.
isClick
||
this
.
touching
)
return
;
this
.
touching
=
true
;
let
target
:
cc
.
Node
=
e
.
target
;
let
target
:
cc
.
Node
=
e
.
target
;
target
.
parent
=
this
.
node
;
target
.
parent
=
this
.
node
;
this
.
setTouchPos
(
e
);
this
.
setTouchPos
(
e
);
}
}
private
onTouchMove
(
e
)
{
private
onTouchMove
(
e
)
{
if
(
!
this
.
isClick
)
return
;
if
(
!
this
.
isClick
||
!
this
.
touching
)
return
;
let
target
:
cc
.
Node
=
e
.
target
;
let
target
:
cc
.
Node
=
e
.
target
;
this
.
setTouchPos
(
e
);
this
.
setTouchPos
(
e
);
}
}
private
onTouchEnd
(
e
)
{
private
onTouchEnd
(
e
)
{
if
(
!
this
.
isClick
)
return
;
if
(
!
this
.
isClick
||
!
this
.
touching
)
return
;
this
.
touching
=
false
;
let
target
:
cc
.
Node
=
e
.
target
;
let
target
:
cc
.
Node
=
e
.
target
;
let
car
=
cc
.
find
(
"
spt_car/layout_item
"
,
this
.
layout_game
);
let
car
=
cc
.
find
(
"
spt_car/layout_item
"
,
this
.
layout_game
);
if
(
!
car
)
return
;
if
(
!
car
)
return
;
...
...
assets/op68_plus_new/scene/server.ts.meta
→
assets/op68_plus_new/scene/server
_op68_plus_new
.ts.meta
View file @
2d362bb8
{
{
"ver": "1.0.8",
"ver": "1.0.8",
"uuid": "
2aac122f-0244-4934-8c73-6279a92b7a02
",
"uuid": "
1da43153-a1ab-4328-9a4b-338745196904
",
"isPlugin": false,
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInNative": true,
...
...
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