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
93662419
Commit
93662419
authored
Jun 05, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
2b0fab60
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
CarCarColorsComponent.ts
...ripts/Scenes/MainGame/Components/CarCarColorsComponent.ts
+6
-1
RoleCarColorsSysterm.ts
.../Scripts/Scenes/MainGame/Systerms/RoleCarColorsSysterm.ts
+2
-1
index.do.json5
preview-template/mock/main/index.do.json5
+1
-1
No files found.
assets/Scripts/Scenes/MainGame/Components/CarCarColorsComponent.ts
View file @
93662419
...
...
@@ -93,10 +93,15 @@ export class CarCarColorsComponent extends Component {
role
.
setRotationFromEuler
(
0
,
0
,
0
);
role
.
getComponent
(
RoleCarColorsComponent
).
playSit
();
if
(
this
.
tweenCount
<=
0
&&
this
.
isFull
)
{
if
(
carPoint
.
getSiblingIndex
()
===
7
)
{
const
index
=
carPoint
.
getSiblingIndex
();
if
(
index
===
7
||
index
==
6
||
index
==
5
||
index
==
4
)
{
carPoint
.
name
=
"lock"
;
carPoint
.
children
[
0
].
children
[
0
].
active
=
false
;
carPoint
.
children
[
0
].
children
[
1
].
active
=
true
;
if
(
index
==
4
)
{
carPoint
.
children
[
0
].
children
[
1
].
active
=
false
;
carPoint
.
children
[
0
].
children
[
2
].
active
=
true
;
}
}
else
{
carPoint
.
name
=
"empty"
;
}
...
...
assets/Scripts/Scenes/MainGame/Systerms/RoleCarColorsSysterm.ts
View file @
93662419
...
...
@@ -200,7 +200,8 @@ export class RoleCarColorsSysterm extends Component {
// 匹配的车
if
(
selectedCar
!==
null
)
{
if
(
selectedCar
.
getComponent
(
CarCarColorsComponent
).
addRole
(
roleCom
.
node
))
{
const
isFull
=
selectedCar
.
getComponent
(
CarCarColorsComponent
).
addRole
(
roleCom
.
node
)
if
(
isFull
)
{
selectedCar
.
setParent
(
find
(
"Scene/Levels"
),
true
)
}
this
.
addRoleToLine
()
...
...
preview-template/mock/main/index.do.json5
View file @
93662419
...
...
@@ -9,7 +9,7 @@
"creditsNum": 100,
"gameCreditsEach": 100,
"qgNum": 33,
"unparkQgNum": 6
6
,
"unparkQgNum": 6,
"unparkCreditsNum": 88,
"boxConfigs": [
{
...
...
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