public override void Create() { screenData.SetFrame(); upperData.transform.position = screenData.topLeft; subStateData.transform.position = screenData.bottomLeft + screenData.up * (states.Length + 1) * .2f; avatarName.transform.position = screenData.bottomLeft + screenData.up * (states.Length + 3) * .2f; pushButton1.transform.position = screenData.bottomRight; pushButton1.transform.position += screenData.up * pushButton1.transform.localScale.y * .5f; pushButton1.transform.position += -screenData.right * pushButton1.transform.localScale.x * .5f; avatarNameMaker = avatarName.GetComponent <TitleMaker>(); maps = new GameObject[states.Length]; for (int i = 0; i < states.Length; i++) { maps[i] = Instantiate(mapPrefab); maps[i].transform.position = screenData.bottomLeft; //title.gameObject.transform.position; maps[i].transform.position += screenData.up * .2f * i; // maps[i].GetComponent<Renderer>().enabled = true; Cycles.Add(states[i]); } titleMaker = maps[0].GetComponent <TitleMaker>(); for (int i = 0; i < maps.Length - 1; i++) { maps[i].GetComponent <TitleMaker>().next = maps[i + 1].GetComponent <TitleMaker>(); } maps[maps.Length - 1].GetComponent <TitleMaker>().next = title.gameObject.GetComponent <TitleMaker>(); }