mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
UIScriptGenerator
This commit is contained in:
@@ -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
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user