|
|
@@ -2,7 +2,7 @@
|
|
|
* @Author: mojunshou 1637302775@qq.com
|
|
|
* @Date: 2025-03-20 15:01:09
|
|
|
* @LastEditors: mojunshou 1637302775@qq.com
|
|
|
- * @LastEditTime: 2025-04-30 10:32:04
|
|
|
+ * @LastEditTime: 2025-04-30 15:42:36
|
|
|
* @Description: 消除游戏主场景
|
|
|
*/
|
|
|
import { _decorator, Button, Color, EventTouch, instantiate, JsonAsset, Animation, v3, Label, Node, Prefab, randomRangeInt, Sprite, tween, UITransform, Vec2, Vec3, Widget } from "cc";
|
|
|
@@ -1600,12 +1600,19 @@ export class EliminateViewComp extends CCComp {
|
|
|
if (this.eliminateTotal % randomNum === 0) {
|
|
|
//如果有自动就暂停自动
|
|
|
if (smc.game.GameModel.skipAdConfig != -1) {
|
|
|
- if (smc.game.GameModel.skipAdCount == 0 || smc.game.GameModel.skipAdCount % smc.game.GameModel.skipAdConfig != 0) {
|
|
|
- ServerHandler.inst.getDoubleSurprise();
|
|
|
- } else {
|
|
|
+ //大于就直接看视频
|
|
|
+ if (smc.game.GameModel.skipAdCount > smc.game.GameModel.skipAdConfig) {
|
|
|
smc.game.GameModel.viewType = "double_reward";
|
|
|
smc.game.GameModel.directAdCount++; //测试看
|
|
|
ADHandler.inst.showAd(AD_TYPE.Double_Receive);
|
|
|
+ } else {
|
|
|
+ if (smc.game.GameModel.skipAdCount == 0 || smc.game.GameModel.skipAdCount % smc.game.GameModel.skipAdConfig != 0) {
|
|
|
+ ServerHandler.inst.getDoubleSurprise();
|
|
|
+ } else {
|
|
|
+ smc.game.GameModel.viewType = "double_reward";
|
|
|
+ smc.game.GameModel.directAdCount++; //测试看
|
|
|
+ ADHandler.inst.showAd(AD_TYPE.Double_Receive);
|
|
|
+ }
|
|
|
}
|
|
|
} else {
|
|
|
ServerHandler.inst.getDoubleSurprise();
|