mirror of
https://github.com/hykilpikonna/AquaDX.git
synced 2026-08-24 02:04:26 -05:00
[+] HideMask also hide Monitor_Mask
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user