123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- using Fort23.Core;
- using Fort23.UTool;
- using UnityEngine.UI;
- using UnityEngine;
- using System.Collections.Generic;
- using Coffee.UIExtensions;
- using Core.UI.UTool.UITween;
- namespace Fort23.Mono
- {
- public partial class GachaPanel
- {
- #region 自定义数据
- private Button _oneButton;
- public Button oneButton
- {
- get{
- if (_oneButton == null)
- {
- _oneButton = GetUIUnit<Button>("oneButton");
- }
- return _oneButton;
- }
- }
- private Button _tenButton;
- public Button tenButton
- {
- get{
- if (_tenButton == null)
- {
- _tenButton = GetUIUnit<Button>("tenButton");
- }
- return _tenButton;
- }
- }
- private Text _tenCion;
- public Text tenCion
- {
- get{
- if (_tenCion == null)
- {
- _tenCion = GetUIUnit<Text>("tenCion");
- }
- return _tenCion;
- }
- }
- private Text _onCion;
- public Text onCion
- {
- get{
- if (_onCion == null)
- {
- _onCion = GetUIUnit<Text>("onCion");
- }
- return _onCion;
- }
- }
- private RectTransform _GridItem;
- public RectTransform GridItem
- {
- get{
- if (_GridItem == null)
- {
- _GridItem = GetUIUnit<RectTransform>("GridItem");
- }
- return _GridItem;
- }
- }
- private List<RectTransform> _PosRoot;
- public List<RectTransform> PosRoot
- {
- get{
- if (_PosRoot == null)
- {
- _PosRoot = GetUIUnit<List<RectTransform>>("PosRoot");
- }
- return _PosRoot;
- }
- }
- private RectTransform _fxpos;
- public RectTransform fxpos
- {
- get{
- if (_fxpos == null)
- {
- _fxpos = GetUIUnit<RectTransform>("fxpos");
- }
- return _fxpos;
- }
- }
- private UIParticle _fx_ui_box_click;
- public UIParticle fx_ui_box_click
- {
- get{
- if (_fx_ui_box_click == null)
- {
- _fx_ui_box_click = GetUIUnit<UIParticle>("fx_ui_box_click");
- }
- return _fx_ui_box_click;
- }
- }
- private UITweenController _animTween;
- public UITweenController animTween
- {
- get{
- if (_animTween == null)
- {
- _animTween = GetUIUnit<UITweenController>("animTween");
- }
- return _animTween;
- }
- }
- private Text _text_btnText;
- public Text text_btnText
- {
- get{
- if (_text_btnText == null)
- {
- _text_btnText = GetUIUnit<Text>("text_btnText");
- }
- return _text_btnText;
- }
- }
- private Text _Trxt_Cion;
- public Text Trxt_Cion
- {
- get{
- if (_Trxt_Cion == null)
- {
- _Trxt_Cion = GetUIUnit<Text>("Trxt_Cion");
- }
- return _Trxt_Cion;
- }
- }
- private RectTransform _Group_ResourceBar;
- public RectTransform Group_ResourceBar
- {
- get{
- if (_Group_ResourceBar == null)
- {
- _Group_ResourceBar = GetUIUnit<RectTransform>("Group_ResourceBar");
- }
- return _Group_ResourceBar;
- }
- }
- #endregion 自定义数据结束
- public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
- {
- await base.SetUIGameObject(gObjectPoolInterface);
- Init();
- }
- }
- }
|