// Start is called before the first frame update public void Rebuild() { for (int i = 0; i < amount; i++) { Glob thisGlob = Instantiate(glob.gameObject, this.transform).GetComponent <Glob>(); thisGlob.transform.localPosition = Random.insideUnitSphere * 20; thisGlob.Rebuild(); } }