24 lines
No EOL
651 B
C#
24 lines
No EOL
651 B
C#
using HarmonyLib;
|
|
using System;
|
|
using PvZ_Fusion_Translator__BepInEx_.AssetStore;
|
|
using UnityEngine;
|
|
|
|
namespace PvZ_Fusion_Translator__BepInEx_.Patches.GameObjects
|
|
{
|
|
[HarmonyPatch(typeof(MainMenu))]
|
|
public class MainMenu_Patch
|
|
{
|
|
private static bool _warningShown = false;
|
|
|
|
[HarmonyPostfix]
|
|
[HarmonyPatch(nameof(MainMenu.AnimOver))]
|
|
private static void AnimOver(MainMenu __instance)
|
|
{
|
|
if (_warningShown || NoticeMenu.Instance == null)
|
|
return;
|
|
|
|
WarningStore.WarningReload(Utils.Language, NoticeMenu.Instance);
|
|
_warningShown = true;
|
|
}
|
|
}
|
|
} |