You've already forked taptap2024_GJ_chidouren
init
This commit is contained in:
26
Assets/Scripts/Game/Component/DoubleCard/NoneCardShower.cs
Normal file
26
Assets/Scripts/Game/Component/DoubleCard/NoneCardShower.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user