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