getCoinPool() {
if (this.coinPools.length <= 0) {
let coin = new Laya.Image();
coin.skin = "res/game/icon_jinbi.png";
return coin;
} else {
return this.coinPools.pop();
}
}
pushCoinPool(coin: Laya.Image) {
this.coinPools.push(coin);
}
getLinePool() {
if (this.linePools.length <= 0) {
let coinAni = this.coinLineAni.clone();
return coinAni;
} else {
return this.linePools.pop();
}
}
pushLinePool(coinAni: Laya.Animation) {
this.linePools.push(coinAni);
}
网友评论