void Start() { tabsn = 0; foreach (GameObject tab in TabList.GetTabs()) { GameObject child = Instantiate(tab, new Vector3(transform.position.x, transform.position.y + tabsn * Stage.width), Quaternion.identity) as GameObject; child.transform.parent = transform; tabsn++; } tabActual = PlayerPrefs.GetFloat(ppname, 0); }