|
@@ -31,7 +31,11 @@ export class car_lib_list_item extends Component {
|
|
|
this.m_cb = cb
|
|
|
this.img_car.getComponent(Sprite).spriteFrame = dataManager.getUserRankCarSf(data.id, -1)
|
|
|
this.lab_car_name.getComponent(Label).string = data.name
|
|
|
- this.lab_car_score.getComponent(Label).string = data.unlock_points + '分'
|
|
|
+ if(data.stype==0) {
|
|
|
+ this.lab_car_score.getComponent(Label).string = data.unlock_points + '分'
|
|
|
+ } else {
|
|
|
+ this.lab_car_score.getComponent(Label).string = data.unlock_points + '碎片'
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
public getData():car_item_data{
|