TableLayout/Example/TableLayoutExampleController.cs
Станислав Хозяенок a670ba2edd TableLayout - init
2025-04-28 12:22:09 +07:00

19 lines
502 B
C#

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);
}
}
}