Files
taptap2024_GJ_chidouren/Assets/Scripts/Game/Component/DoubleCard/NoneCardShower.cs
2024-10-16 00:03:41 +08:00

26 lines
658 B
C#

using UnityEngine;
using UnityEngine.Events;
namespace Game.Component
{
public class NoneCardShower : CardShower
{
[SerializeField] private UnityEvent onCardShow;
[SerializeField] private UnityEvent onCardHide;
public override void ShowCard ()
{
this.gameObject.SetActive (true);
this.onCardShow?.Invoke ();
}
public override void HideCard ()
{
this.gameObject.SetActive (false);
this.onCardHide?.Invoke ();
}
public UnityEvent OnCardShow => this.onCardShow;
public UnityEvent OnCardHide => this.onCardHide;
}
}