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
5ee4f142
Commit
5ee4f142
authored
Jun 04, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
0bb5f1e2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
character_girl.prefab
assets/Bundles/MainGame/prefab/character_girl.prefab
+3
-3
character_man.prefab
assets/Bundles/MainGame/prefab/character_man.prefab
+3
-3
RoleCarColorsComponent.ts
...ipts/Scenes/MainGame/Components/RoleCarColorsComponent.ts
+3
-0
No files found.
assets/Bundles/MainGame/prefab/character_girl.prefab
View file @
5ee4f142
...
@@ -194,9 +194,9 @@
...
@@ -194,9 +194,9 @@
],
],
"value": {
"value": {
"__type__": "cc.Vec3",
"__type__": "cc.Vec3",
"x":
7
,
"x":
10
,
"y":
7
,
"y":
10
,
"z":
7
"z":
10
}
}
},
},
{
{
...
...
assets/Bundles/MainGame/prefab/character_man.prefab
View file @
5ee4f142
...
@@ -200,9 +200,9 @@
...
@@ -200,9 +200,9 @@
],
],
"value": {
"value": {
"__type__": "cc.Vec3",
"__type__": "cc.Vec3",
"x":
7
,
"x":
10
,
"y":
7
,
"y":
10
,
"z":
7
"z":
10
}
}
},
},
{
{
...
...
assets/Scripts/Scenes/MainGame/Components/RoleCarColorsComponent.ts
View file @
5ee4f142
...
@@ -45,17 +45,20 @@ export class RoleCarColorsComponent extends Component {
...
@@ -45,17 +45,20 @@ export class RoleCarColorsComponent extends Component {
playWalk
()
{
playWalk
()
{
if
(
this
.
status
===
"walk"
)
return
;
if
(
this
.
status
===
"walk"
)
return
;
this
.
node
.
children
[
0
].
setScale
(
10
,
10
,
10
);
this
.
status
=
"walk"
;
this
.
status
=
"walk"
;
this
.
animation
.
play
(
"run"
);
this
.
animation
.
play
(
"run"
);
}
}
playSit
()
{
playSit
()
{
this
.
status
=
"sit"
this
.
status
=
"sit"
this
.
node
.
children
[
0
].
setScale
(
7
,
7
,
7
);
this
.
animation
.
play
(
"sit"
);
this
.
animation
.
play
(
"sit"
);
}
}
playIdle
()
{
playIdle
()
{
if
(
this
.
status
===
"idle"
)
return
if
(
this
.
status
===
"idle"
)
return
this
.
node
.
children
[
0
].
setScale
(
10
,
10
,
10
);
this
.
status
=
"idle"
;
this
.
status
=
"idle"
;
const
names
=
[
"idel_1"
,
"idel_2"
,
"idel_3"
];
const
names
=
[
"idel_1"
,
"idel_2"
,
"idel_3"
];
this
.
animation
.
play
(
names
[
randomRangeInt
(
0
,
4
)]);
this
.
animation
.
play
(
names
[
randomRangeInt
(
0
,
4
)]);
...
...
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