예제 #1
0
    public void ChooseTargetForDuel(Card c)
    {
        print("CHOOSING TARGET");
        c.transform.SetParent(cm.duelPanel.transform); c.transform.SetAsLastSibling();
        c.transform.position = cm.card2.transform.position;

        if (targetReason == TargetReason.Bribe)
        {
            cm.Bribe(playur.playerCard, c);
        }
        else if (targetReason == TargetReason.Threaten)
        {
            cm.Threaten(playur.playerCard, c);
        }
        else if (targetReason == TargetReason.Steal)
        {
            cm.Steal(playur.playerCard, c);
        }
    }