예제 #1
0
    void OnMouseUpAsButton()
    {
        if (active)
        {
            selected = !selected;

            if (selected)
            {
                cardSlotScript.ChangeCardSlot(direction, true);
                pairController.PairSelect();
            }

            if (!selected)
            {
                cardSlotScript.ChangeCardSlot(direction, false);
                pairController.Deselect();
            }

            cardTexture.sprite = idleTexture;
        }
    }
    void OnMouseUpAsButton()
    {
        if (active)
        {
            selected = !selected;

            if (selected)
            {
                //StartCoroutine(gameScript.ResolveCard(direction, "RedSheep"));
                pairController.PairSelect();
            }

            if (!selected)
            {
                cardSlotScript.ChangeCardSlot(direction, false);
                pairController.Deselect();
            }

            cardTexture.sprite = idleTexture;

            tutorialManager.GetComponent <TutorialController>().IncrementMessage();
        }
    }