using UnityEngine; using System.Collections.Generic; using UI.Tables; namespace UI.Tables.Examples { public class TableLayoutExampleController : MonoBehaviour { public List Examples = new List(); public void ShowExample(TableLayout example) { Examples.ForEach(t => { if (t != example) t.gameObject.SetActive(false); }); if (!example.gameObject.activeInHierarchy) example.gameObject.SetActive(true); } } }