19 lines
469 B
C#
19 lines
469 B
C#
|
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<GameObject>("Services/Framework").WaitForCompletion());
|
||
|
GameObject.DontDestroyOnLoad(instance);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|