// Use this for initialization public override void initialization() { base.initialization(); logoCtr.initialization(); logoCtr.ShowAll(); foreach (ICtr ctr in ctrs) { float time = Random.Range(0.5f, 1f); ctr.initialization(); StartCoroutine(ctr.show(time)); } if (instance == null) { instance = this; } }
public override void ShowOne(ICtr ctr) { foreach (var item in ctrs) { if (item == ctr) { ctr.ShowAll(); } else { item.HideAll(); } } }