using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.AddressableAssets; namespace BITKit { public class BITFramework : MonoBehaviour { [RuntimeInitializeOnLoadMethod] private static void Reload() { var instance = Instantiate(Addressables.LoadAssetAsync("Services/Framework").WaitForCompletion()); GameObject.DontDestroyOnLoad(instance); } } }