void SpawnImportantText(string text, Color color) { GameObject hej = Instantiate(textIM, Vector3.zero, Quaternion.identity); hej.transform.SetParent(fuckYou.transform); LifeTime script = hej.GetComponent <LifeTime>(); script.SetPosition(new Vector3(0f + fuckYou.transform.position.x, 0f + fuckYou.transform.position.y, 0f)); //INTE NICE MEN JAG HAR KVAR DET ÄNDÅ script.SetText(text); script.SetColor(color); script.SetLifeTime(240f); }