48 lines
2.1 KiB
C#
48 lines
2.1 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 UIFightTargetBinder
|
|
{
|
|
|
|
public static void GetComponents(UIFightTargetController window)
|
|
{
|
|
window.Image_IconBg = window.GetComponent<Image>("UI_LiuHaiRight/MissionProgress/Image_IconBg");
|
|
window.Image_Icon = window.GetComponent<Image>("UI_LiuHaiRight/MissionProgress/Image_Icon");
|
|
window.Image_ProgressBg = window.GetComponent<Image>("UI_LiuHaiRight/MissionProgress/Image_ProgressBg");
|
|
window.Image_ProgressBar = window.GetComponent<Image>("UI_LiuHaiRight/MissionProgress/Image_ProgressBar");
|
|
window.Image_Character = window.GetComponent<Image>("UI_LiuHaiRight/MissionProgress/Image_Character");
|
|
window.Text_CharacterConut = window.GetComponent<TMP_Text>("UI_LiuHaiRight/MissionProgress/Text_CharacterConut");
|
|
window.Image_Vehicle = window.GetComponent<Image>("UI_LiuHaiRight/MissionProgress/Image_Vehicle");
|
|
window.Text_VehicleConut = window.GetComponent<TMP_Text>("UI_LiuHaiRight/MissionProgress/Text_VehicleConut");
|
|
window.Image_TimeClock = window.GetComponent<Image>("UI_LiuHaiRight/MissionProgress/Image_TimeClock");
|
|
window.Text_Time = window.GetComponent<TMP_Text>("UI_LiuHaiRight/MissionProgress/Text_Time");
|
|
window.Image_TargetBg = window.GetComponent<Image>("UI_LiuHaiRight/MissionTarget/Image_TargetBg");
|
|
window.Text_Target = window.GetComponent<TMP_Text>("UI_LiuHaiRight/MissionTarget/Image_TargetBg/Text_Target");
|
|
|
|
}
|
|
|
|
/****** 定义变量语句 ******
|
|
public Image Image_IconBg;
|
|
public Image Image_Icon;
|
|
public Image Image_ProgressBg;
|
|
public Image Image_ProgressBar;
|
|
public Image Image_Character;
|
|
public TMP_Text Text_CharacterConut;
|
|
public Image Image_Vehicle;
|
|
public TMP_Text Text_VehicleConut;
|
|
public Image Image_TimeClock;
|
|
public TMP_Text Text_Time;
|
|
public Image Image_TargetBg;
|
|
public TMP_Text Text_Target;
|
|
|
|
****** End ******/
|
|
} |