import { _decorator } from 'cc';
import JNScrollViewItem from '../../../../../../extensions/ngame/assets/ngame/util/components/scrollview/JNScrollViewItem';
import { PlayerResourceIcon } from './PlayerResourceIcon';
const { ccclass, property } = _decorator;

@ccclass('PlayerResourceIconScroll')
export class PlayerResourceIconScroll extends JNScrollViewItem<number> {

    @property(PlayerResourceIcon)
    icon:PlayerResourceIcon;

    onInit(data:number){

        this.icon.set(data);

    }

}


