From eabe8a9b75024b126fc8651a5a202de65d692007 Mon Sep 17 00:00:00 2001 From: zhangaotian <8474238@qq.com> Date: Fri, 28 Jun 2024 16:29:01 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90AD=E3=80=91=E5=85=B3=E9=97=ADunityAds?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Forest/Assets/Scripts/Gameplay/Manager/ADManager.cs | 1 + Forest/ProjectSettings/ProjectSettings.asset | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Forest/Assets/Scripts/Gameplay/Manager/ADManager.cs b/Forest/Assets/Scripts/Gameplay/Manager/ADManager.cs index 389e35f..621aa44 100644 --- a/Forest/Assets/Scripts/Gameplay/Manager/ADManager.cs +++ b/Forest/Assets/Scripts/Gameplay/Manager/ADManager.cs @@ -166,6 +166,7 @@ namespace Gameplay.Manager { try { + if (_adSdkNames is not { Count: > 0 } && _adHelpers is not { Count: > 0 }) return false; _currentAdIndex = _currentAdIndex >= _adHelpers.Count ? 0 : _currentAdIndex; var helperKey = _adSdkNames[_currentAdIndex]; if (!_adHelpers.TryGetValue(helperKey, out var curADHelper)) diff --git a/Forest/ProjectSettings/ProjectSettings.asset b/Forest/ProjectSettings/ProjectSettings.asset index cad9a1a..ae81137 100644 --- a/Forest/ProjectSettings/ProjectSettings.asset +++ b/Forest/ProjectSettings/ProjectSettings.asset @@ -819,7 +819,7 @@ PlayerSettings: Android: ODIN_INSPECTOR;ODIN_INSPECTOR_3;ODIN_INSPECTOR_3_1;ODIN_VALIDATOR;ODIN_VALIDATOR_3_1;SDK_FIREBASE;USE_ADDRESSABLES;SDK_ADMOD;SDK_UNITYADS Standalone: ODIN_INSPECTOR;ODIN_INSPECTOR_3;ODIN_INSPECTOR_3_1;ODIN_VALIDATOR;ODIN_VALIDATOR_3_1;USE_ADDRESSABLES;SDK_FIREBASE;SDK_ADMOD;SDK_UNITYADS WebGL: ODIN_VALIDATOR;ODIN_VALIDATOR_3_1;ODIN_INSPECTOR;ODIN_INSPECTOR_3;ODIN_INSPECTOR_3_1 - iPhone: ODIN_VALIDATOR;ODIN_VALIDATOR_3_1;ODIN_INSPECTOR;ODIN_INSPECTOR_3;ODIN_INSPECTOR_3_1;SDK_FIREBASE;USE_ADDRESSABLES;SDK_ADMOD;SDK_UNITYADS + iPhone: ODIN_VALIDATOR;ODIN_VALIDATOR_3_1;ODIN_INSPECTOR;ODIN_INSPECTOR_3;ODIN_INSPECTOR_3_1;SDK_FIREBASE;USE_ADDRESSABLES;SDK_ADMOD additionalCompilerArguments: {} platformArchitecture: {} scriptingBackend: