55 lines
948 B
C#
55 lines
948 B
C#
using Cysharp.Threading.Tasks;
|
|
using DG.Tweening;
|
|
using UnityEngine.UI;
|
|
using TMPro;
|
|
|
|
namespace ZC
|
|
{
|
|
[UIType(UIType.BlackUI)]
|
|
public class BlackUI : UIBase
|
|
{
|
|
#region AutoGen_InitIon
|
|
|
|
public Image img_BG;
|
|
|
|
#endregion
|
|
|
|
public override void Init()
|
|
{
|
|
base.Init();
|
|
|
|
#region AutoGen_Init
|
|
|
|
img_BG = GetValue<Image>("img_BG");
|
|
|
|
#endregion
|
|
}
|
|
|
|
public async UniTask OpenAsync()
|
|
{
|
|
img_BG.DOFade(1, 1f);
|
|
await UniTask.Delay(1000);
|
|
}
|
|
|
|
public async UniTask CloseAsync()
|
|
{
|
|
img_BG.DOFade(0, 1f);
|
|
await UniTask.Delay(1000);
|
|
}
|
|
|
|
#region AutoGen_Method
|
|
|
|
#endregion
|
|
|
|
public override void Dispose()
|
|
{
|
|
base.Dispose();
|
|
|
|
#region AutoGen_Dispose
|
|
|
|
img_BG = null;
|
|
|
|
#endregion
|
|
}
|
|
}
|
|
} |