15 lines
204 B
C#
15 lines
204 B
C#
|
using UnityEngine;
|
||
|
|
||
|
namespace RoR2;
|
||
|
|
||
|
public class DisableIfGameModded : MonoBehaviour
|
||
|
{
|
||
|
public void OnEnable()
|
||
|
{
|
||
|
if (RoR2Application.isModded)
|
||
|
{
|
||
|
base.gameObject.SetActive(value: false);
|
||
|
}
|
||
|
}
|
||
|
}
|