Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using JSon;
- public class ModEntryPoint : MonoBehaviour
- {
- // Start is called before the first frame update
- void Start()
- {
- string modName = GetType().Assembly.GetName().Name;
- Debug.Log("Mod Init: " + modName);
- ResourceManager.AddBundle(AssetBundle.LoadFromFile(Application.persistentDataPath + "/Mods/" + modName + "/resources"));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment