24 lines
483 B
C#
24 lines
483 B
C#
|
|
using UnityEngine;
|
|||
|
|
using UnityEngine.UI;
|
|||
|
|
|
|||
|
|
namespace UI.CardSystem
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// Simple component representing card back visuals; toggle visibility.
|
|||
|
|
/// </summary>
|
|||
|
|
public class CardBack : MonoBehaviour
|
|||
|
|
{
|
|||
|
|
[SerializeField] private Image backImage;
|
|||
|
|
|
|||
|
|
public void Show()
|
|||
|
|
{
|
|||
|
|
gameObject.SetActive(true);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public void Hide()
|
|||
|
|
{
|
|||
|
|
gameObject.SetActive(false);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|