
const { ccclass, property } = cc._decorator;

@ccclass
export default class BreakingJarController extends cc.Component {
    private _BG: cc.Node = null;
    private _behindJar: cc.Node = null;
    private _frontJar: cc.Node = null;
    private _slotsJar: cc.Node = null;
    private _behindJarChild: cc.Node[] = [];
    private _frontJarChild: cc.Node[] = [];
    private _slotsJarChild: cc.Node[] = [];


    onLoad() {
        [this._BG, this._behindJar, this._frontJar, this._slotsJar] = this.node.children;
        this._behindJarChild = this._behindJar.children;
        this._frontJarChild = this._frontJar.children;
        this._slotsJarChild = this._slotsJar.children;

        this._slotsJarChild.forEach((slot) => {
            slot.active = false;
        })
    }
}
