На удивление игра получила положительный фидбек от нескольких игроков :D
Может после джема эпиков еще что-нибудь в нее довайбкожу
Сегодня посматривал нагенеренный моделью код, ну и, конечно, вот это шедевр я считаю. Перестраховалась так перестраховалась.
+ Показать
− Скрыть
if (_forceCrashButton == null || _throwExceptionButton == null || _showInterstitialButton == null || _showRewardedButton == null || _showDebugButton == null || _closeButton == null)
{
var buttons = GetComponentsInChildren<Button>(true);
foreach (var btn in buttons)
{
if (btn == null) continue;
var n = btn.name;
if (_forceCrashButton == null && NameMatches(n, "ForceCrash")) _forceCrashButton = btn;
else if (_throwExceptionButton == null && NameMatches(n, "ThrowException")) _throwExceptionButton = btn;
else if (_showInterstitialButton == null && NameMatches(n, "ShowInterstitial")) _showInterstitialButton = btn;
else if (_showRewardedButton == null && NameMatches(n, "ShowRewarded")) _showRewardedButton = btn;
else if (_showDebugButton == null && NameMatches(n, "ShowDebug")) _showDebugButton = btn;
else if (_closeButton == null && NameMatches(n, "Close")) _closeButton = btn;
}
int idx = 0;
foreach (var btn in buttons)
{
if (btn == null) continue;
if (_forceCrashButton == null && idx == 0) { _forceCrashButton = btn; idx++; continue; }
if (_throwExceptionButton == null && idx == 1) { _throwExceptionButton = btn; idx++; continue; }
if (_showInterstitialButton == null && idx == 2) { _showInterstitialButton = btn; idx++; continue; }
if (_showRewardedButton == null && idx == 3) { _showRewardedButton = btn; idx++; continue; }
if (_showDebugButton == null && idx == 4) { _showDebugButton = btn; idx++; continue; }
if (_closeButton == null && idx == 5) { _closeButton = btn; break; }
idx++;
}
}
if (_forceCrashButton != null) _forceCrashButton.onClick.AddListener(ForceCrash);
if (_throwExceptionButton != null) _throwExceptionButton.onClick.AddListener(ThrowException);
if (_showInterstitialButton != null) _showInterstitialButton.onClick.AddListener(ShowInterstitial);
if (_showRewardedButton != null) _showRewardedButton.onClick.AddListener(ShowRewarded);
if (_showDebugButton != null) _showDebugButton.onClick.AddListener(ShowDebug);
if (_closeButton != null) _closeButton.onClick.AddListener(Close);
Increaser
> Сегодня посматривал нагенеренный моделью код, ну и, конечно, вот это шедевр я считаю
Можно пояснений. Для меня это просто знаки цифры и буквы.
Increaser
> Сегодня посматривал нагенеренный моделью код, ну и, конечно, вот это шедевр я считаю.
Я все пытаюсь заставить нейросеть писать комменты к моему коду... Только Gemini нормально вишни, более-менее. Claude тоже пишет, но оно постоянно пытается код править, предлагая изменения там, где они прям вот вообще не нужны. Ну и порой там такое в комментах нахожу, страшно становится.
slava-rusi11
> Можно пояснений. Для меня это просто знаки цифры и буквы.
Вам оно и не надо.