using UnityEngine; using UnityEngine.UI; using System.Collections; using System.Collections.Generic; public class UIIdolSelect : MonoBehaviour { //prefab [SerializeField] private GameObject UnitView; protected GameObject UIManager = null; [SerializeField] public GameObject[] charas; [SerializeField] public GameObject[] dresses; private GameObject IdolSelect; private GameObject IdolSelectAnother; private ToggleSwitch IdolSwitch; private void Awake() { Transform switchtrans = base.transform.Find("IdolSelectSwitch"); if (switchtrans != null) { IdolSwitch = switchtrans.GetComponent(); } Transform livetrans = base.transform.Find("IdolSelect"); if (livetrans != null) { IdolSelect = livetrans.gameObject; } livetrans = base.transform.Find("IdolSelectAnother"); if (livetrans != null) { IdolSelectAnother = livetrans.gameObject; } } // Use this for initialization void Start() { UIManager = GameObject.Find("UIManager"); //CharaViewの呼び出しに使う番号を付与 for (int i = 0; i < charas.Length; i++) { Button button = charas[i].transform.GetComponentInChildren