|
@@ -2,7 +2,7 @@
|
|
|
* @Author: mojunshou 1637302775@qq.com
|
|
* @Author: mojunshou 1637302775@qq.com
|
|
|
* @Date: 2025-03-20 15:01:09
|
|
* @Date: 2025-03-20 15:01:09
|
|
|
* @LastEditors: mojunshou 1637302775@qq.com
|
|
* @LastEditors: mojunshou 1637302775@qq.com
|
|
|
- * @LastEditTime: 2025-04-25 19:54:59
|
|
|
|
|
|
|
+ * @LastEditTime: 2025-04-27 10:46:23
|
|
|
* @Description: 消除游戏主场景
|
|
* @Description: 消除游戏主场景
|
|
|
*/
|
|
*/
|
|
|
import { _decorator, Button, Color, EventTouch, instantiate, JsonAsset, v3, Label, Node, Prefab, randomRangeInt, Sprite, tween, UITransform, Vec2, Vec3, Widget } from "cc";
|
|
import { _decorator, Button, Color, EventTouch, instantiate, JsonAsset, v3, Label, Node, Prefab, randomRangeInt, Sprite, tween, UITransform, Vec2, Vec3, Widget } from "cc";
|
|
@@ -1547,6 +1547,10 @@ export class EliminateViewComp extends CCComp {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (DeviceUtil.isAndroid && DeviceUtil.isNative) {
|
|
if (DeviceUtil.isAndroid && DeviceUtil.isNative) {
|
|
|
|
|
+ //需要欧安的是否通关了,当前通关了就不要弹了
|
|
|
|
|
+ if (this.score >= this.targetScore) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
if (this.eliminateInterval.length > 0) {
|
|
if (this.eliminateInterval.length > 0) {
|
|
|
const minNum = this.eliminateInterval[0]
|
|
const minNum = this.eliminateInterval[0]
|
|
|
const maxNum = this.eliminateInterval[1]
|
|
const maxNum = this.eliminateInterval[1]
|
|
@@ -1560,6 +1564,8 @@ export class EliminateViewComp extends CCComp {
|
|
|
}
|
|
}
|
|
|
if (smc.game.GameModel.skipAdConfig != -1) {
|
|
if (smc.game.GameModel.skipAdConfig != -1) {
|
|
|
if (smc.game.GameModel.skipAdCount > 0 && smc.game.GameModel.skipAdCount % smc.game.GameModel.skipAdConfig == 0) {
|
|
if (smc.game.GameModel.skipAdCount > 0 && smc.game.GameModel.skipAdCount % smc.game.GameModel.skipAdConfig == 0) {
|
|
|
|
|
+ console.log("skipAdCount>>>>>>>>>>>>>>>", smc.game.GameModel.skipAdCount);
|
|
|
|
|
+ console.log("skipAdConfig>>>>>>>>>>>>>>", smc.game.GameModel.skipAdConfig);
|
|
|
smc.game.GameModel.viewType = "double_reward";
|
|
smc.game.GameModel.viewType = "double_reward";
|
|
|
ADHandler.inst.showAd(AD_TYPE.Double_Receive);
|
|
ADHandler.inst.showAd(AD_TYPE.Double_Receive);
|
|
|
} else {
|
|
} else {
|
|
@@ -2315,6 +2321,8 @@ export class EliminateViewComp extends CCComp {
|
|
|
private updateWelfarePoint() {
|
|
private updateWelfarePoint() {
|
|
|
const showState = smc.game.GameModel.popupShow
|
|
const showState = smc.game.GameModel.popupShow
|
|
|
if (!showState) {
|
|
if (!showState) {
|
|
|
|
|
+ //展示这些的时候,游戏要暂停
|
|
|
|
|
+ this.gameState = GameState.PAUSED;
|
|
|
switch (this.popupType) {
|
|
switch (this.popupType) {
|
|
|
case "weal_1":
|
|
case "weal_1":
|
|
|
oops.gui.open(UIID.WarmReminder);
|
|
oops.gui.open(UIID.WarmReminder);
|
|
@@ -2440,4 +2448,16 @@ export class EliminateViewComp extends CCComp {
|
|
|
[arr[i], arr[j]] = [arr[j], arr[i]];
|
|
[arr[i], arr[j]] = [arr[j], arr[i]];
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ //用导演直接冻结游戏或者恢复游戏
|
|
|
|
|
+ updateGameStatus() {
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
}
|
|
}
|