[+] HideMask also hide Monitor_Mask

This commit is contained in:
Clansty
2024-12-01 12:22:39 +08:00
parent 16d2576f6f
commit dbbd177589

View File

@@ -1,5 +1,6 @@
using AquaMai.Config.Attributes;
using HarmonyLib;
using Monitor;
using UnityEngine;
namespace AquaMai.Mods.Fancy;
@@ -15,4 +16,18 @@ public class HideMask
{
GameObject.Find("Mask").SetActive(false);
}
}
[HarmonyPostfix]
[HarmonyPatch(typeof(MonitorBackgroundTownController), "Awake")]
public static void Awake(GameObject ____bgObject)
{
try
{
____bgObject.transform.Find("BG").Find("Monitor_Mask").gameObject.SetActive(false);
}
catch
{
// ignored
}
}
}