22 lines
568 B
C#
22 lines
568 B
C#
using System;
|
|
using Code.Infrastructure.UI;
|
|
using PrimeTween;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace Code.Calendar.Panels
|
|
{
|
|
public class LogoPanel : UIPanel
|
|
{
|
|
[SerializeField] private Image logo;
|
|
public override void Open(Action callback = null)
|
|
{
|
|
Tween.Alpha(logo, 1f, 1f).OnComplete(target: this, _ => callback?.Invoke());
|
|
}
|
|
|
|
public override void Close(Action callback = null)
|
|
{
|
|
Tween.Alpha(logo, 0f, 1f).OnComplete(target: this, _ => callback?.Invoke());
|
|
}
|
|
}
|
|
} |