774d18a99d
made most of the game Moddable. There is an in editor tool to make the mods and set them all up, and im making an external tool that will show your mods, lets you edit any information and it will pack it up and upload it. currently working on the uploading. Next I will make the game able to download and install. - Fuck Nexus.
22 lines
566 B
C#
22 lines
566 B
C#
using UnityEngine;
|
|
using TMPro;
|
|
|
|
public class TestModPrefab : MonoBehaviour
|
|
{
|
|
public TextMeshProUGUI Name;
|
|
public TextMeshProUGUI Description;
|
|
string Location;
|
|
|
|
//basic setup method
|
|
public void SetupModPrefab(string name, string desc, string loacation)
|
|
{
|
|
Name.text = name;
|
|
Description.text = desc;
|
|
Location = loacation;
|
|
}
|
|
//called to set the mod that will be loaded next
|
|
public void SetMe()
|
|
{
|
|
TestModManager.TestmodManager.SelectMod(Name.text, Location + "/" + Name.text + "/mod.json");
|
|
}
|
|
} |