From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- Client/Assets/Scripts/UICommon/XUITable.cs | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Client/Assets/Scripts/UICommon/XUITable.cs (limited to 'Client/Assets/Scripts/UICommon/XUITable.cs') diff --git a/Client/Assets/Scripts/UICommon/XUITable.cs b/Client/Assets/Scripts/UICommon/XUITable.cs new file mode 100644 index 00000000..dee9187f --- /dev/null +++ b/Client/Assets/Scripts/UICommon/XUITable.cs @@ -0,0 +1,32 @@ +using UILib; +using UnityEngine; + +public class XUITable : MonoBehaviour, IXUITable +{ + private void Awake() + { + m_table = GetComponent(); + + if (null == m_table) + { + Debug.LogError("null == m_table"); + } + } + + public void RePositionNow() + { + m_table.repositionNow = true; + } + + public void Reposition() + { + m_table.Reposition(); + } + + public void RePositionOnlyOneLevel() + { + m_table.RepositionOnlyOneLevel(); + } + + private UITable m_table; +} -- cgit v1.1-26-g67d0