You've already forked taptap2024_GJ_chidouren
26 lines
658 B
C#
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;
|
|||
|
|
}
|
|||
|
|
}
|