Commit 5ee4f142 authored by haiyoucuv's avatar haiyoucuv

init

parent 0bb5f1e2
......@@ -194,9 +194,9 @@
],
"value": {
"__type__": "cc.Vec3",
"x": 7,
"y": 7,
"z": 7
"x": 10,
"y": 10,
"z": 10
}
},
{
......
......@@ -200,9 +200,9 @@
],
"value": {
"__type__": "cc.Vec3",
"x": 7,
"y": 7,
"z": 7
"x": 10,
"y": 10,
"z": 10
}
},
{
......
......@@ -45,17 +45,20 @@ export class RoleCarColorsComponent extends Component {
playWalk() {
if (this.status === "walk") return;
this.node.children[0].setScale(10, 10, 10);
this.status = "walk";
this.animation.play("run");
}
playSit() {
this.status = "sit"
this.node.children[0].setScale(7, 7, 7);
this.animation.play("sit");
}
playIdle() {
if (this.status === "idle") return
this.node.children[0].setScale(10, 10, 10);
this.status = "idle";
const names = ["idel_1", "idel_2", "idel_3"];
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