Firstborn/Assets/Scripts/TestModPrefab.cs
Schaken-Mods 774d18a99d 5/18/2023 Update
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.
2023-05-18 20:28:45 -05:00

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");
}
}