Basic texture pack system

by Talon

public static void Main()
{
    ReplaceTextures("Sword");
}

public static void ReplaceTextures(string ItemToReplace)
{
    ModAPI.FindSpawnable(ItemToReplace).Prefab.GetComponent<SpriteRenderer>().sprite = ModAPI.LoadSprite("sprites/" + ItemToReplace + ".png");
    ModAPI.FindSpawnable(ItemToReplace).ViewSprite = ModAPI.LoadSprite("sprites/" + ItemToReplace + "Thumb.png");
}
Attention!

This member is obsolete and should not be used. It is a remnant from the past.

bi bij bibi