public static GameObject CreateScroll(Transform t, bool parent=false){
int[] runes = ScrollGen.GetRunes();
GameObject scroll = MonoBehaviour.Instantiate(Resources.Load("Prefabs/Magic/Scroll"), t.position, t.rotation) as GameObject;
if(parent)scroll.transform.parent = t;
scroll.transform.Find("Rune 2").GetComponent<Renderer>().material.SetTexture("_MainTex", Runes.GetRuneTexture(runes[0]));
scroll.transform.Find("Rune 3").GetComponent<Renderer>().material.SetTexture("_MainTex", Runes.GetRuneTexture(runes[1]));
scroll.transform.name = "Scroll";
scroll.GetComponent<Scroll>().rune1 = Runes.RUNE_NAME[runes[0]];
scroll.GetComponent<Scroll>().rune2 = Runes.RUNE_NAME[runes[1]];
return scroll;
}