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: