r2mods/ilspy_dump/ror2_csproj/BlockObjectOnLoad.cs

19 lines
364 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using System;
using RoR2;
using UnityEngine;
public class BlockObjectOnLoad : MonoBehaviour
{
private void Start()
{
if (!RoR2Application.loadFinished)
{
base.gameObject.SetActive(value: false);
RoR2Application.onLoad = (Action)Delegate.Combine(RoR2Application.onLoad, (Action)delegate
{
base.gameObject.SetActive(value: true);
});
}
}
}