import { _decorator, Component, Node, Sprite } from 'cc';
import { GameManager } from '../../GameManager';
import { userDataManager } from '../../manager/userDataManager';
const { ccclass, property } = _decorator;

@ccclass('home_car')
export class home_car extends Component {
    @property(Node) spr_car:Node = null
    updateCar(){
        // console.log('当前用户默认car_id=',userDataManager.user_car_list.default_car_id)
        this.spr_car.getComponent(Sprite).spriteFrame = GameManager.getUserDefaultHomeCarSf()
    }
}


