Files
Caleb Sandford deQuincey 715fb68744 Initial commitment
2025-06-25 11:10:11 +01:00

27 lines
656 B
C#

using UnityEngine;
namespace Nullframes.Intrigues.SaveSystem
{
[DefaultExecutionOrder(-350)]
public abstract class IRuntimeLoader : MonoBehaviour
{
private static RuntimeActorLoader current;
private void Awake()
{
if (current != null)
{
Destroy(gameObject);
return;
}
current = (RuntimeActorLoader)this;
Load();
}
public static void Load() {
if (current == null || IntrigueSaveSystem.Instance == null) return;
IntrigueSaveSystem.Instance.LoadRuntimeActors();
}
}
}