Example #1
0
    public void OnPointerEnter(PointerEventData eventData)
    {
        get();

        if (drawnPlayer == hands.Cardownerreturn(cardIndex))
        {
            var v = new Vector2(0, 0.4f);
            transform.Translate(v);
        }
    }
Example #2
0
    public void OnPointerEnter(PointerEventData eventData)
    {
        get();

        if (drawnCard == cardIndex && preDrawnPlayer == 0) //前ひかれたカードだったら
        {
            cardModel.ToggleFace(true);
            Debug.Log("selected");
        }

        if (drawnPlayer == hands.Cardownerreturn(cardIndex))
        {
            var v = new Vector2(0, 0.4f);
            transform.Translate(v);
        }
    }