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