scatter层级先放一放

This commit is contained in:
TJH 2025-12-29 15:19:25 +08:00
parent d6eb489f91
commit 651d496e7e
3 changed files with 3024 additions and 2830 deletions

File diff suppressed because it is too large Load Diff

View File

@ -105,7 +105,7 @@ export class SlotGame extends Component {
this.grayNode = this.node.getChildByName('grayNode');
this.winLayer = this.node.getChildByName('winLayer');
this.readyHand = this.node.getChildByName('readyHand');
this.scatterLayer = this.node.getChildByName('scatterLayer');
this.scatterLayer = this.node.getChildByPath('scatterLayer/layer')
this.winType = this.node.getChildByName('winType');
@ -860,8 +860,9 @@ export class SlotGame extends Component {
}
setFeatureBuyInteractable(isInteractable: boolean) {
this.featureBuyNode.getComponent(Sprite).grayscale = !isInteractable;
this.featureBuyNode.getChildByName('FEATUREBUY').getComponent(Sprite).grayscale = !isInteractable;
// this.featureBuyNode.getComponent(Sprite).grayscale = !isInteractable;
// this.featureBuyNode.getChildByName('FEATUREBUY').getComponent(Sprite).grayscale = !isInteractable;
this.featureBuyNode.getComponent(UIOpacity).opacity = isInteractable ? 255 : 160
this.featureBuyNode.getComponent(Button).interactable = isInteractable;
}

View File

@ -212,6 +212,9 @@ export class SlotScene extends Component {
}
this.slotBar.reconnectState(true);
this.slotGame.changeBg(this.gameState.isInFreeSpin);
// this.slotGame.rollerManager.checkNextRollerExpect(6, 1)
// this.slotGame.showScatterOnIsScroll();
if (this.gameState.isInFreeSpin) {
AudioManager.instance.playBGM("Free_Mode_BGM");
} else {
@ -494,6 +497,8 @@ export class SlotScene extends Component {
allRollerStop() {
this.slotGame.setFastSpin(this.gameState.isFastSpin);
this.checkHasGame();
// this.slotGame.rollerManager.checkNextRollerExpect(6, 1)
// this.slotGame.showScatterOnIsScroll();
// this.TotalWin.show(35, () => {
// this.slotBar.resetAllState();
// });