r2mods/ilspy_dump/ror2_csproj/RoR2/OutroCutsceneController.cs

35 lines
600 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using UnityEngine;
using UnityEngine.Playables;
namespace RoR2;
public class OutroCutsceneController : MonoBehaviour
{
public PlayableDirector playableDirector;
private int finishCount;
public static OutroCutsceneController instance { get; private set; }
public bool cutsceneIsFinished { get; private set; }
public void Finish()
{
finishCount++;
if (finishCount >= 1)
{
cutsceneIsFinished = true;
}
}
private void OnEnable()
{
instance = SingletonHelper.Assign(instance, this);
}
private void OnDisable()
{
instance = SingletonHelper.Unassign(instance, this);
}
}