推进度!
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace Continentis.MainGame.Card
|
||||
{
|
||||
public class IntentionCardViewMark : MonoBehaviour, IPointerEnterHandler
|
||||
{
|
||||
public IntentionCardView intentionCardView;
|
||||
public CanvasGroup canvasGroup;
|
||||
public Image markImage;
|
||||
public TMP_Text markText;
|
||||
|
||||
public void SetMark(Sprite sprite, string text)
|
||||
{
|
||||
markImage.sprite = sprite;
|
||||
markText.text = text;
|
||||
}
|
||||
|
||||
public void OnPointerEnter(PointerEventData eventData)
|
||||
{
|
||||
intentionCardView.intentionCardMain.canvasGroup.alpha = 1f;
|
||||
intentionCardView.intentionCardMain.canvasGroup.blocksRaycasts = true;
|
||||
this.canvasGroup.alpha = 0f;
|
||||
this.canvasGroup.blocksRaycasts = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user