47 lines
1.3 KiB
C#
47 lines
1.3 KiB
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using Spine.Unity;
|
|
using UIScriptBase;
|
|
using TMPro;
|
|
|
|
public partial class EventSandDigInfoPopupPanelLogic : MonoBehaviour
|
|
{
|
|
private RectTransform _offset;
|
|
private GameObject _root;
|
|
private RectTransform _reward1;
|
|
private RectTransform _reward2;
|
|
private RectTransform _reward3;
|
|
private Button _close;
|
|
|
|
private void Awake()
|
|
{
|
|
_offset = GetCmp<RectTransform>("root");
|
|
_root = GetObj("root");
|
|
_reward1 = GetCmp<RectTransform>("root/info3/bg_bar/layout_reward/Obj_reward1");
|
|
_reward2 = GetCmp<RectTransform>("root/info3/bg_bar/layout_reward/Obj_reward2");
|
|
_reward3 = GetCmp<RectTransform>("root/info3/bg_bar/layout_reward/Obj_reward3");
|
|
_close = GetCmp<Button>("Btn_close");
|
|
}
|
|
private T GetCmp<T>(string path) where T : Component
|
|
{
|
|
return UIUtils.GetCmp<T>(this.transform, path);
|
|
}
|
|
private GameObject GetObj(string path)
|
|
{
|
|
return UIUtils.GetObj(this.transform, path);
|
|
}
|
|
private Transform GetTrans(string path)
|
|
{
|
|
return UIUtils.GetTrans(this.transform, path);
|
|
}
|
|
public Transform Root
|
|
{
|
|
get
|
|
{
|
|
return _offset;
|
|
}
|
|
}
|
|
}
|