r2mods/ilspy_dump/ror2_csproj/RoR2.Navigation/DisableWithGate.cs

19 lines
328 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using UnityEngine;
namespace RoR2.Navigation;
public class DisableWithGate : MonoBehaviour
{
public string gateToMatch;
public bool invert;
private void Start()
{
if ((bool)SceneInfo.instance && SceneInfo.instance.groundNodes.IsGateOpen(gateToMatch) == invert)
{
base.gameObject.SetActive(value: false);
}
}
}