Firstborn/Assets/Scripts/TestModPrefab.cs

22 lines
566 B
C#
Raw Normal View History

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