import { _decorator, Component, Node, Sprite } from 'cc';
import { imageCacheManager } from '../../manager/imageCacheManager';
import { userData } from '../../data';
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(){
        this.spr_car.getComponent(Sprite).spriteFrame = imageCacheManager.getHomeCarImageById(userDataManager.user_car_list.default_car_id)
    }
}


