更新
This commit is contained in:
parent
65f6326b14
commit
2536198641
|
|
@ -3563,10 +3563,7 @@ export default class MapConroler extends cc.Component {
|
|||
const wincoin = winCOIN.getComponent(SceneManager);
|
||||
if (wincoin) {
|
||||
wincoin.updateWinCoin();
|
||||
const abTests = cc.fx.GameConfig.GM_INFO.abTests;
|
||||
if (abTests && Number(abTests.layer_two) == 2) {
|
||||
wincoin.updateNextMode();
|
||||
}
|
||||
wincoin.updateNextMode();
|
||||
} else {
|
||||
console.log("JiaZai 组件未找到");
|
||||
}
|
||||
|
|
@ -3673,17 +3670,13 @@ export default class MapConroler extends cc.Component {
|
|||
node.active = visible;
|
||||
}
|
||||
|
||||
playLayerTwoWinCoinFly() {
|
||||
playWinCoinFly() {
|
||||
if (!this.node || !cc.isValid(this.node)) {
|
||||
return;
|
||||
}
|
||||
if (this.hideNewModeSettlementDecorations()) {
|
||||
return;
|
||||
}
|
||||
const abTests = cc.fx.GameConfig.GM_INFO.abTests;
|
||||
if (!abTests || Number(abTests.layer_two) != 2) {
|
||||
return;
|
||||
}
|
||||
const canvas = cc.find("Canvas");
|
||||
if (!canvas) {
|
||||
return;
|
||||
|
|
@ -6837,7 +6830,7 @@ export default class MapConroler extends cc.Component {
|
|||
if (!this.node || !cc.isValid(this.node)) {
|
||||
return;
|
||||
}
|
||||
this.playLayerTwoWinCoinFly();
|
||||
this.playWinCoinFly();
|
||||
}, t(0.55));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -61,19 +61,19 @@ export default class SceneManager extends cc.Component {
|
|||
@property(cc.Node)
|
||||
nextMode: cc.Node = null;
|
||||
|
||||
@property({ type: cc.Prefab, tooltip: "layer_two=2 结算后飞金币预制体,不配则使用 flyCoinSpriteFrame" })
|
||||
@property({ type: cc.Prefab, tooltip: "结算后飞金币预制体,不配则使用 flyCoinSpriteFrame" })
|
||||
flyCoinPrefab: cc.Prefab = null;
|
||||
|
||||
@property({ type: cc.SpriteFrame, tooltip: "layer_two=2 结算后飞金币图片,未配置预制体时使用" })
|
||||
@property({ type: cc.SpriteFrame, tooltip: "结算后飞金币图片,未配置预制体时使用" })
|
||||
flyCoinSpriteFrame: cc.SpriteFrame = null;
|
||||
|
||||
@property({ tooltip: "layer_two=2 结算后飞金币数量" })
|
||||
@property({ tooltip: "结算后飞金币数量" })
|
||||
flyCoinCount: number = 16;
|
||||
|
||||
@property({ tooltip: "layer_two=2 结算后飞金币单个飞行时间" })
|
||||
@property({ tooltip: "结算后飞金币单个飞行时间" })
|
||||
flyCoinDuration: number = 1;
|
||||
|
||||
@property({ tooltip: "layer_two=2 结算后飞金币间隔" })
|
||||
@property({ tooltip: "结算后飞金币间隔" })
|
||||
flyCoinInterval: number = 0.05;
|
||||
|
||||
//赢了头像
|
||||
|
|
@ -223,10 +223,6 @@ export default class SceneManager extends cc.Component {
|
|||
if (this.isDestroying || !this.node || !cc.isValid(this.node)) {
|
||||
return;
|
||||
}
|
||||
const abTests = cc.fx.GameConfig.GM_INFO.abTests;
|
||||
if (!abTests || Number(abTests.layer_two) != 2) {
|
||||
return;
|
||||
}
|
||||
if (!this.winCoin || !cc.isValid(this.winCoin) || (!this.flyCoinPrefab && !this.flyCoinSpriteFrame)) {
|
||||
console.warn("playWinCoinFly skip: winCoin or fly coin asset missing");
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user