Commit 5ee4f142 authored by haiyoucuv's avatar haiyoucuv

init

parent 0bb5f1e2
...@@ -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
} }
}, },
{ {
......
...@@ -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
} }
}, },
{ {
......
...@@ -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)]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment