Files
LowPolyRPG/Assets/Plugins/Nullframes/Intrigues/Scripts/Save System/IRuntimeLoader.cs

27 lines
656 B
C#
Raw Normal View History

2025-06-25 11:10:11 +01:00
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();
}
}
}