UIScriptGenerator

This commit is contained in:
Alex-Rachel
2025-03-15 00:42:23 +08:00
parent be3b6eb8f2
commit 9bffcce30e
8 changed files with 614 additions and 4 deletions

View File

@@ -1,12 +1,30 @@
using System.Collections;
using UnityEngine;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
using TEngine;
namespace GameLogic
{
[Window(UILayer.Bottom, fullScreen: true)]
[Window(UILayer.UI)]
class BattleMainUI : UIWindow
{
#region
private RectTransform _rectContainer;
private GameObject _itemTouch;
private GameObject _goTopInfo;
private GameObject _itemRoleInfo;
private GameObject _itemMonsterInfo;
protected override void ScriptGenerator()
{
_rectContainer = FindChildComponent<RectTransform>("m_rectContainer");
_itemTouch = FindChild("m_rectContainer/m_itemTouch").gameObject;
_goTopInfo = FindChild("m_goTopInfo").gameObject;
_itemRoleInfo = FindChild("m_goTopInfo/m_itemRoleInfo").gameObject;
_itemMonsterInfo = FindChild("m_goTopInfo/m_itemMonsterInfo").gameObject;
}
#endregion
#region
#endregion
}
}