Guest User

ATOM RPG mod example

a guest
Feb 16th, 2019
870
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using JSon;
  5.  
  6. public class ModEntryPoint : MonoBehaviour
  7. {
  8.     // Start is called before the first frame update
  9.     void Start()
  10.     {
  11.         string modName = GetType().Assembly.GetName().Name;
  12.         Debug.Log("Mod Init: " + modName);
  13.         ResourceManager.AddBundle(AssetBundle.LoadFromFile(Application.persistentDataPath + "/Mods/" + modName + "/resources"));
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment