19 lines
603 B
C#
19 lines
603 B
C#
using UnityEngine;
|
|
using UnityEngine.EventSystems;
|
|
|
|
namespace Continentis.MainGame.Card
|
|
{
|
|
public class IntentionCardViewMain : MonoBehaviour, IPointerExitHandler
|
|
{
|
|
public IntentionCardView intentionCardView;
|
|
public CanvasGroup canvasGroup;
|
|
|
|
public void OnPointerExit(PointerEventData eventData)
|
|
{
|
|
this.canvasGroup.alpha = 0f;
|
|
this.canvasGroup.blocksRaycasts = false;
|
|
intentionCardView.intentionMark.canvasGroup.alpha = 1f;
|
|
intentionCardView.intentionMark.canvasGroup.blocksRaycasts = true;
|
|
}
|
|
}
|
|
} |