r2mods/ilspy_dump/ror2_csproj/RoR2/DisableIfGameModded.cs

15 lines
204 B
C#

using UnityEngine;
namespace RoR2;
public class DisableIfGameModded : MonoBehaviour
{
public void OnEnable()
{
if (RoR2Application.isModded)
{
base.gameObject.SetActive(value: false);
}
}
}