mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
18 lines
523 B
C#
18 lines
523 B
C#
using HarmonyLib;
|
|
using UnityEngine;
|
|
|
|
namespace NewHorizons.Patches.EyeScenePatches
|
|
{
|
|
[HarmonyPatch(typeof(EyeVortexTrigger))]
|
|
public static class EyeVortexTriggerPatches
|
|
{
|
|
[HarmonyPostfix]
|
|
[HarmonyPatch(nameof(EyeVortexTrigger.OnEnterVortex))]
|
|
public static void EyeVortexTrigger_OnEnterVortex(EyeVortexTrigger __instance, GameObject hitObj)
|
|
{
|
|
if (!hitObj.CompareTag("PlayerDetector")) return;
|
|
__instance._tunnelObject.SetActive(true);
|
|
}
|
|
}
|
|
}
|