History/Assets/UI/TableLayout/Example/TableLayoutExampleController.cs
Станислав Хозяенок b6c87d8b70 Релиз от 24.04.2025
2025-04-25 08:32: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);
}
}
}