r2mods/ilspy_dump/ror2_csproj/RoR2.Scripts.Tutorial/TutorialFirstLevelEventGate.cs

24 lines
450 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using UnityEngine;
using UnityEngine.Events;
namespace RoR2.Scripts.Tutorial;
public class TutorialFirstLevelEventGate : MonoBehaviour
{
public UnityEvent ExecTutorialIsEnabled;
public UnityEvent ExecTutorialIsDisabled;
public void Exec()
{
if (TutorialManager.isTutorialEnabled && (bool)Run.instance && Run.instance.stageClearCount == 0)
{
ExecTutorialIsEnabled?.Invoke();
}
else
{
ExecTutorialIsDisabled?.Invoke();
}
}
}