34 lines
1.0 KiB
C#
34 lines
1.0 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using TMPro;
|
|
using Framework;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using UnityEngine.UIElements;
|
|
using Button = UnityEngine.UI.Button;
|
|
using Image = UnityEngine.UI.Image;
|
|
using Toggle = UnityEngine.UI.Toggle;
|
|
using ScrollView = PhxhSDK.PhxhScrollView;
|
|
|
|
public class UINoticeOneBinder
|
|
{
|
|
|
|
public static void GetComponents(UINoticeOneController window)
|
|
{
|
|
window.Image_BG = window.GetComponent<Image>("Image_BG");
|
|
window.Text_Title = window.GetComponent<TMP_Text>("Image_BG/Text_Title");
|
|
window.Text_Desc = window.GetComponent<TMP_Text>("Image_BG/Text_Desc");
|
|
window.Button_Confirm = window.GetComponent<Button>("Image_BG/Button_Confirm");
|
|
window.Text_Confirm = window.GetComponent<TMP_Text>("Image_BG/Button_Confirm/Text_Confirm");
|
|
|
|
}
|
|
|
|
/****** 定义变量语句 ******
|
|
public Image Image_BG;
|
|
public TMP_Text Text_Title;
|
|
public TMP_Text Text_Desc;
|
|
public Button Button_Confirm;
|
|
public TMP_Text Text_Confirm;
|
|
|
|
****** End ******/
|
|
} |