Files
CreatGame/UnityGame/Assets/Scripts/GameLogic/Export/UGUI/UIMainView.cs

26 lines
637 B
C#
Raw Normal View History

2025-07-16 18:10:09 +08:00
using UnityEngine;
using UnityEngine.UI;
namespace CreatGame.UI
{
public class UIMainView : UIViewBase
{
2025-07-16 18:22:32 +08:00
public override string PrefabPath => "Prefabs/UI/MainView";
2025-07-16 18:10:09 +08:00
/// <summary>
///
/// </summary>
public Button StarBtn;
/// <summary>
///
/// </summary>
public Text StarBtnText;
public override void PreLoad(GameObject view)
{
base.PreLoad(view);
StarBtn = GetGameObject(nameof(StarBtn)).GetComponent<Button>();
StarBtnText = GetGameObject(nameof(StarBtnText)).GetComponent<Text>();
}
2025-07-16 18:12:25 +08:00
}
2025-07-16 18:10:09 +08:00
}