Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
car
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
car
Commits
21c279ef
Commit
21c279ef
authored
May 29, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
c5bdc215
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
101 additions
and
49 deletions
+101
-49
MainGame.scene
assets/Bundles/MainGame/MainGame.scene
+63
-45
GamePage.ts
assets/Scripts/Scenes/MainGame/GamePage.ts
+2
-4
GameUI.ts
assets/Scripts/Scenes/MainGame/GameUI.ts
+27
-0
GameUI.ts.meta
assets/Scripts/Scenes/MainGame/GameUI.ts.meta
+9
-0
No files found.
assets/Bundles/MainGame/MainGame.scene
View file @
21c279ef
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
"_active": true,
"_active": true,
"_components": [],
"_components": [],
"_prefab": {
"_prefab": {
"__id__": 16
1
"__id__": 16
2
},
},
"_lpos": {
"_lpos": {
"__type__": "cc.Vec3",
"__type__": "cc.Vec3",
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
},
},
"autoReleaseAssets": false,
"autoReleaseAssets": false,
"_globals": {
"_globals": {
"__id__": 16
5
"__id__": 16
6
},
},
"_id": "2c42d766-165b-48f3-b337-ed539df8fa45"
"_id": "2c42d766-165b-48f3-b337-ed539df8fa45"
},
},
...
@@ -3901,31 +3901,31 @@
...
@@ -3901,31 +3901,31 @@
},
},
"_children": [
"_children": [
{
{
"__id__": 14
1
"__id__": 14
2
},
},
{
{
"__id__": 14
4
"__id__": 14
5
},
},
{
{
"__id__": 14
7
"__id__": 14
8
},
},
{
{
"__id__": 15
0
"__id__": 15
1
},
},
{
{
"__id__": 15
3
"__id__": 15
4
},
},
{
{
"__id__": 15
6
"__id__": 15
7
}
}
],
],
"_active": false,
"_active": false,
"_components": [
"_components": [
{
{
"__id__": 1
59
"__id__": 1
60
},
},
{
{
"__id__": 16
0
"__id__": 16
1
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -3996,6 +3996,9 @@
...
@@ -3996,6 +3996,9 @@
},
},
{
{
"__id__": 140
"__id__": 140
},
{
"__id__": 141
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -4966,6 +4969,21 @@
...
@@ -4966,6 +4969,21 @@
"__prefab": null,
"__prefab": null,
"_id": "cdy03jG/xDaYzm5d2bbb06"
"_id": "cdy03jG/xDaYzm5d2bbb06"
},
},
{
"__type__": "6ce83/ihIlKlIuFH/Zz1DPN",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 114
},
"_enabled": true,
"__prefab": null,
"backBtn": {
"__id__": 117
},
"_id": "27HHXKTKtBtKcsbghJPw/p"
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "Node",
"_name": "Node",
...
@@ -4978,10 +4996,10 @@
...
@@ -4978,10 +4996,10 @@
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 14
2
"__id__": 14
3
},
},
{
{
"__id__": 14
3
"__id__": 14
4
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -5020,7 +5038,7 @@
...
@@ -5020,7 +5038,7 @@
"_objFlags": 0,
"_objFlags": 0,
"__editorExtras__": {},
"__editorExtras__": {},
"node": {
"node": {
"__id__": 14
1
"__id__": 14
2
},
},
"_enabled": true,
"_enabled": true,
"__prefab": null,
"__prefab": null,
...
@@ -5042,7 +5060,7 @@
...
@@ -5042,7 +5060,7 @@
"_objFlags": 0,
"_objFlags": 0,
"__editorExtras__": {},
"__editorExtras__": {},
"node": {
"node": {
"__id__": 14
1
"__id__": 14
2
},
},
"_enabled": true,
"_enabled": true,
"__prefab": null,
"__prefab": null,
...
@@ -5087,10 +5105,10 @@
...
@@ -5087,10 +5105,10 @@
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 14
5
"__id__": 14
6
},
},
{
{
"__id__": 14
6
"__id__": 14
7
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -5129,7 +5147,7 @@
...
@@ -5129,7 +5147,7 @@
"_objFlags": 0,
"_objFlags": 0,
"__editorExtras__": {},
"__editorExtras__": {},
"node": {
"node": {
"__id__": 14
4
"__id__": 14
5
},
},
"_enabled": true,
"_enabled": true,
"__prefab": null,
"__prefab": null,
...
@@ -5151,7 +5169,7 @@
...
@@ -5151,7 +5169,7 @@
"_objFlags": 0,
"_objFlags": 0,
"__editorExtras__": {},
"__editorExtras__": {},
"node": {
"node": {
"__id__": 14
4
"__id__": 14
5
},
},
"_enabled": true,
"_enabled": true,
"__prefab": null,
"__prefab": null,
...
@@ -5196,10 +5214,10 @@
...
@@ -5196,10 +5214,10 @@
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 14
8
"__id__": 14
9
},
},
{
{
"__id__": 1
49
"__id__": 1
50
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -5238,7 +5256,7 @@
...
@@ -5238,7 +5256,7 @@
"_objFlags": 0,
"_objFlags": 0,
"__editorExtras__": {},
"__editorExtras__": {},
"node": {
"node": {
"__id__": 14
7
"__id__": 14
8
},
},
"_enabled": true,
"_enabled": true,
"__prefab": null,
"__prefab": null,
...
@@ -5260,7 +5278,7 @@
...
@@ -5260,7 +5278,7 @@
"_objFlags": 0,
"_objFlags": 0,
"__editorExtras__": {},
"__editorExtras__": {},
"node": {
"node": {
"__id__": 14
7
"__id__": 14
8
},
},
"_enabled": true,
"_enabled": true,
"__prefab": null,
"__prefab": null,
...
@@ -5305,10 +5323,10 @@
...
@@ -5305,10 +5323,10 @@
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 15
1
"__id__": 15
2
},
},
{
{
"__id__": 15
2
"__id__": 15
3
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -5347,7 +5365,7 @@
...
@@ -5347,7 +5365,7 @@
"_objFlags": 0,
"_objFlags": 0,
"__editorExtras__": {},
"__editorExtras__": {},
"node": {
"node": {
"__id__": 15
0
"__id__": 15
1
},
},
"_enabled": true,
"_enabled": true,
"__prefab": null,
"__prefab": null,
...
@@ -5369,7 +5387,7 @@
...
@@ -5369,7 +5387,7 @@
"_objFlags": 0,
"_objFlags": 0,
"__editorExtras__": {},
"__editorExtras__": {},
"node": {
"node": {
"__id__": 15
0
"__id__": 15
1
},
},
"_enabled": true,
"_enabled": true,
"__prefab": null,
"__prefab": null,
...
@@ -5440,10 +5458,10 @@
...
@@ -5440,10 +5458,10 @@
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 15
4
"__id__": 15
5
},
},
{
{
"__id__": 15
5
"__id__": 15
6
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -5482,7 +5500,7 @@
...
@@ -5482,7 +5500,7 @@
"_objFlags": 0,
"_objFlags": 0,
"__editorExtras__": {},
"__editorExtras__": {},
"node": {
"node": {
"__id__": 15
3
"__id__": 15
4
},
},
"_enabled": true,
"_enabled": true,
"__prefab": null,
"__prefab": null,
...
@@ -5504,7 +5522,7 @@
...
@@ -5504,7 +5522,7 @@
"_objFlags": 0,
"_objFlags": 0,
"__editorExtras__": {},
"__editorExtras__": {},
"node": {
"node": {
"__id__": 15
3
"__id__": 15
4
},
},
"_enabled": true,
"_enabled": true,
"__prefab": null,
"__prefab": null,
...
@@ -5549,10 +5567,10 @@
...
@@ -5549,10 +5567,10 @@
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 15
7
"__id__": 15
8
},
},
{
{
"__id__": 15
8
"__id__": 15
9
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -5591,7 +5609,7 @@
...
@@ -5591,7 +5609,7 @@
"_objFlags": 0,
"_objFlags": 0,
"__editorExtras__": {},
"__editorExtras__": {},
"node": {
"node": {
"__id__": 15
6
"__id__": 15
7
},
},
"_enabled": true,
"_enabled": true,
"__prefab": null,
"__prefab": null,
...
@@ -5613,7 +5631,7 @@
...
@@ -5613,7 +5631,7 @@
"_objFlags": 0,
"_objFlags": 0,
"__editorExtras__": {},
"__editorExtras__": {},
"node": {
"node": {
"__id__": 15
6
"__id__": 15
7
},
},
"_enabled": true,
"_enabled": true,
"__prefab": null,
"__prefab": null,
...
@@ -5688,7 +5706,7 @@
...
@@ -5688,7 +5706,7 @@
"instance": null,
"instance": null,
"targetOverrides": [
"targetOverrides": [
{
{
"__id__": 16
2
"__id__": 16
3
}
}
],
],
"nestedPrefabInstanceRoots": [
"nestedPrefabInstanceRoots": [
...
@@ -5703,7 +5721,7 @@
...
@@ -5703,7 +5721,7 @@
"__id__": 91
"__id__": 91
},
},
"sourceInfo": {
"sourceInfo": {
"__id__": 16
3
"__id__": 16
4
},
},
"propertyPath": [
"propertyPath": [
"_trailModule",
"_trailModule",
...
@@ -5713,7 +5731,7 @@
...
@@ -5713,7 +5731,7 @@
"__id__": 91
"__id__": 91
},
},
"targetInfo": {
"targetInfo": {
"__id__": 16
4
"__id__": 16
5
}
}
},
},
{
{
...
@@ -5731,28 +5749,28 @@
...
@@ -5731,28 +5749,28 @@
{
{
"__type__": "cc.SceneGlobals",
"__type__": "cc.SceneGlobals",
"ambient": {
"ambient": {
"__id__": 16
6
"__id__": 16
7
},
},
"shadows": {
"shadows": {
"__id__": 16
7
"__id__": 16
8
},
},
"_skybox": {
"_skybox": {
"__id__": 16
8
"__id__": 16
9
},
},
"fog": {
"fog": {
"__id__": 1
69
"__id__": 1
70
},
},
"octree": {
"octree": {
"__id__": 17
0
"__id__": 17
1
},
},
"skin": {
"skin": {
"__id__": 17
1
"__id__": 17
2
},
},
"lightProbeInfo": {
"lightProbeInfo": {
"__id__": 17
2
"__id__": 17
3
},
},
"postSettings": {
"postSettings": {
"__id__": 17
3
"__id__": 17
4
},
},
"bakedWithStationaryMainLight": false,
"bakedWithStationaryMainLight": false,
"bakedWithHighpLightmap": false
"bakedWithHighpLightmap": false
...
...
assets/Scripts/Scenes/MainGame/GamePage.ts
View file @
21c279ef
...
@@ -160,8 +160,7 @@ export class GamePage extends Component {
...
@@ -160,8 +160,7 @@ export class GamePage extends Component {
// 获取停车位
// 获取停车位
const
point
=
this
.
getEmptyParkPoint
()
const
point
=
this
.
getEmptyParkPoint
()
if
(
point
===
null
)
{
if
(
point
===
null
)
{
// console.log("没有车位了")
showToast
(
"当前车位已满"
);
showToast
(
"没有车位了"
);
return
return
}
}
...
@@ -215,8 +214,7 @@ export class GamePage extends Component {
...
@@ -215,8 +214,7 @@ export class GamePage extends Component {
car
.
children
[
0
].
children
[
0
].
children
[
0
].
active
=
false
car
.
children
[
0
].
children
[
0
].
children
[
0
].
active
=
false
car
.
setScale
(
1.15
,
1.15
,
1.15
)
car
.
setScale
(
1.15
,
1.15
,
1.15
)
this
.
putSmoke
(
smoke
)
this
.
putSmoke
(
smoke
)
})
}).
start
();
.
start
()
}
}
}
}
}
}
...
...
assets/Scripts/Scenes/MainGame/GameUI.ts
0 → 100644
View file @
21c279ef
import
{
_decorator
,
Node
,
Component
,
Button
}
from
'cc'
;
import
{
changeScene
}
from
"db://assets/core/Module/UIFast"
;
import
{
HomeScene
}
from
"db://assets/Scripts/Scenes/HomeScene"
;
const
{
ccclass
,
property
}
=
_decorator
;
@
ccclass
(
'GameUI'
)
export
class
GameUI
extends
Component
{
@
property
(
Node
)
backBtn
:
Node
=
null
;
onLoad
()
{
this
.
backBtn
.
on
(
Button
.
EventType
.
CLICK
,
this
.
clickBack
,
this
);
}
clickBack
=
()
=>
{
changeScene
(
HomeScene
);
}
onDestroy
()
{
}
}
assets/Scripts/Scenes/MainGame/GameUI.ts.meta
0 → 100644
View file @
21c279ef
{
"ver": "4.0.24",
"importer": "typescript",
"imported": true,
"uuid": "6ce83fe2-8489-4a94-8b85-1ff673d433cd",
"files": [],
"subMetas": {},
"userData": {}
}
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