Commit 93662419 authored by haiyoucuv's avatar haiyoucuv

init

parent 2b0fab60
......@@ -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";
}
......
......@@ -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()
......
......@@ -9,7 +9,7 @@
"creditsNum": 100,
"gameCreditsEach": 100,
"qgNum": 33,
"unparkQgNum": 66,
"unparkQgNum": 6,
"unparkCreditsNum": 88,
"boxConfigs": [
{
......
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