2024-11-25 14:35:28 +08:00
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
using DG.Tweening;
|
|
|
|
|
|
|
|
|
|
//panel<65><6C><EFBFBD>࣬<EFBFBD><E0A3AC>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD>panel<65><6C><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
//<2F><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Panel
|
|
|
|
|
//<2F>뽫panel<65><6C><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD>սڵ<D5BD><DAB5>ϣ<EFBFBD><CFA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ű<EFBFBD><C5B1>ſսڵ<D5BD>
|
2024-11-25 23:31:50 +08:00
|
|
|
|
public class BaseUIPanel : Base
|
2024-11-25 14:35:28 +08:00
|
|
|
|
{
|
|
|
|
|
[Header("<22>仯<EFBFBD><E4BBAF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")]
|
|
|
|
|
public GameObject Panel;
|
|
|
|
|
|
|
|
|
|
[Header("CloseBTN")]
|
|
|
|
|
public Button CloseBTN;
|
|
|
|
|
// Start is called before the first frame update
|
|
|
|
|
public virtual void Start()
|
|
|
|
|
{
|
|
|
|
|
HidePanel();
|
|
|
|
|
|
|
|
|
|
CloseBTN.onClick.AddListener(()=> {
|
|
|
|
|
HidePanel();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><>ʾ<EFBFBD><CABE><EFBFBD>壬<EFBFBD><E5A3AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>д
|
|
|
|
|
/// </summary>
|
|
|
|
|
public virtual void ShopPanel()
|
|
|
|
|
{
|
|
|
|
|
Panel.gameObject.SetActive(true);
|
|
|
|
|
CloseBTN.gameObject.SetActive(true);
|
|
|
|
|
Panel.transform.DOScale(1f, 0.3f);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>壬<EFBFBD><E5A3AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>д
|
|
|
|
|
/// </summary>
|
|
|
|
|
public virtual void HidePanel()
|
|
|
|
|
{
|
|
|
|
|
Panel.transform.DOScale(0.5f,0.2f);
|
|
|
|
|
CloseBTN.gameObject.SetActive(false);
|
|
|
|
|
Panel.gameObject.SetActive(false);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|