|
@@ -6,14 +6,14 @@ const { ccclass, property } = _decorator;
|
|
|
export class results_unlock_car extends Component {
|
|
|
@property(Node) spr_car:Node = null
|
|
|
public show(car_id:number){
|
|
|
- this.node.active = true
|
|
|
+ // this.node.active = true
|
|
|
this.spr_car.getComponent(Sprite).spriteFrame =null
|
|
|
this.spr_car.getComponent(Sprite).spriteFrame = imageCacheManager.getHomeCarImageById(car_id)
|
|
|
}
|
|
|
|
|
|
public hide(){
|
|
|
this.spr_car.getComponent(Sprite).spriteFrame =null
|
|
|
- this.node.active = false
|
|
|
+ // this.node.active = false
|
|
|
}
|
|
|
}
|
|
|
|