Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
TNGD_CaveCruiser
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
TNGD_CaveCruiser
Commits
1b348f85
Commit
1b348f85
authored
Aug 09, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
整理代码1
parent
6ed60f3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
MainGame.ts
assets/Scripts/Scenes/MainGame/MainGame.ts
+9
-0
No files found.
assets/Scripts/Scenes/MainGame/MainGame.ts
View file @
1b348f85
...
...
@@ -132,6 +132,7 @@ export class MainGame extends Scene {
}
clickBack
=
()
=>
{
if
(
this
.
isOver
)
return
;
changeScene
(
HomeScene
);
}
...
...
@@ -143,6 +144,8 @@ export class MainGame extends Scene {
* 点击万能球
*/
clickProtean
=
()
=>
{
if
(
this
.
isOver
)
return
;
if
(
this
.
proteanCount
<=
0
)
{
showToast
(
"万能球不足"
);
return
;
...
...
@@ -379,6 +382,8 @@ export class MainGame extends Scene {
readyDrop
:
boolean
=
false
;
onTouchStart
=
(
e
:
EventTouch
)
=>
{
if
(
this
.
isOver
)
return
;
if
(
!
this
.
newBall
)
{
return
;
}
...
...
@@ -389,6 +394,8 @@ export class MainGame extends Scene {
};
onTouchMove
=
(
e
:
EventTouch
)
=>
{
if
(
this
.
isOver
)
return
;
if
(
!
this
.
newBall
)
{
return
;
}
...
...
@@ -399,6 +406,8 @@ export class MainGame extends Scene {
};
onTouchEC
=
(
e
:
EventTouch
)
=>
{
if
(
this
.
isOver
)
return
;
if
(
!
this
.
newBall
||
!
this
.
readyDrop
)
{
return
;
}
...
...
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