using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class MainLeftManager : MonoBehaviour { public static MainLeftManager Instance; public Color cnom; public Color cchoose; // public List list; private void Awake() { Instance = this; } IEnumerator Start() { yield return new WaitForSeconds(1f); /* list = new List(); int ct = this.transform.childCount; for (int i = 0; i < ct; i++) { list.Add(this.transform.GetChild(i).gameObject); list[i].GetComponent().color = cnom; } list[0].GetComponent().color = cchoose; list[0].GetComponent().Choose(true);*/ } public void choose(string index) { } public List list; private void OnEnable() { if(DataManager.admin==1) { for (int i = 0;i