Commit f8cdb5e3 authored by Vũ Gia Vương's avatar Vũ Gia Vương

update position fragment jar

parent 8c354549
This source diff could not be displayed because it is too large. You can view the blob instead.
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;
})
}
}
{
"ver": "1.1.0",
"uuid": "ae421109-40ed-4c6f-a0db-a9fdb2e10955",
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment