/
crypt
/
NumbersPlay
Обзор
Документация
Войти
/
crypt
/
NumbersPlay
Код
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Assets/PluginYourGames/Modules/InterstitialAdv/Scripts/Editor/WarningPostponeCall.cs
49 строк
2 KB
Crypt
start
16 ноя 2025, 14:28
16 ноя 2025, 14:28
1482007
Код
Авторство
О чём код?
using UnityEngine; namespace YG.EditorScr { public static class WarningPostponeCall { public static bool Draw() { if (!YG2.infoYG.InterstitialAdv.postponeCallByFail) { GUILayout.Space(10); #if RU_YG2 string labelText = "Для корректной работы скрипта необходимо включить опцию «Postpone Call By Fail» в настройках"; string buttonText = "Включить опцию «Postpone Call By Fail»"; #else string labelText = "For the script to work correctly, you need to enable the «Postpone Call By Fail» option in the settings"; string buttonText = "Enable the «Postpone Call By Fail» option"; #endif GUILayout.Label($"\n{labelText} {InfoYG.NAME_PLUGIN}!\n", YGEditorStyles.error); if (FastButton.Standart(buttonText)) YG2.infoYG.InterstitialAdv.postponeCallByFail = true; return true; } else if (YG2.infoYG.InterstitialAdv.postponeCallTimer < 10) { GUILayout.Space(10); #if RU_YG2 string labelText1 = "Параметр задержки следующего вызова рекламы «Postpone Call Timer» в настройках"; string labelText2 = "рекомендуется выставлять не менее 10-ти секунд!"; string buttonText = "Выставить параметр «Postpone Call Timer» на 10 секунд"; #else string labelText1 = "The delay parameter for the next ad call is «Postpone Call Timer» in the settings"; string labelText2 = "It is recommended to set at least 10 seconds!"; string buttonText = "Set the «Postpone Call Timer» parameter for 10 seconds"; #endif GUILayout.Label($"\n{labelText1} {InfoYG.NAME_PLUGIN} - {labelText2}\n", YGEditorStyles.warning); if (FastButton.Standart(buttonText)) YG2.infoYG.InterstitialAdv.postponeCallTimer = 10; return true; } return false; } } }