WXMC/.svn/pristine/2b/2be5f9ae11dd1a5a8f7f022fdc460444534a0005.svn-base
2024-12-04 16:18:46 +08:00

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