mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-13 21:57:26 +08:00
[O] Make HideMask separate component
This commit is contained in:
14
AquaMai/UX/HideMask.cs
Normal file
14
AquaMai/UX/HideMask.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using HarmonyLib;
|
||||
using UnityEngine;
|
||||
|
||||
namespace AquaMai.UX;
|
||||
|
||||
public class HideMask
|
||||
{
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(Main.GameMain), "LateInitialize", typeof(MonoBehaviour), typeof(Transform), typeof(Transform))]
|
||||
public static void LateInitialize(MonoBehaviour gameMainObject)
|
||||
{
|
||||
GameObject.Find("Mask").SetActive(false);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user