예제 #1
0
    /// <summary>
    /// クリック時 Previwe用
    /// </summary>
    /// <param name="pointerEventData"></param>
    public void OnPointerClick(PointerEventData pointerEventData)
    {
        if (pointerEventData.pointerEnter == null)
        {
            return;
        }
        preMana.DisplayPreview();
        var cardInfo = pointerEventData.pointerEnter.GetComponent <CardPoolObject>();

        preMana.nameText.text         = cardInfo.character.characterName;
        preMana.costText.text         = cardInfo.character.cost.ToString();
        preMana.characterImage.sprite = cardInfo.character.image;
        preMana.explanationText.text  = preMana.data.GetExplanation((int)cardInfo.character.myCardType);
    }