예제 #1
0
    public void DeployToVantage(string type)               // type could be regular, healer or necromancer
    {
        cardDeploying.GetComponent <Card>().SetCardStatus("Deployed");
        if (type == "Regular")
        {
            if (turn == 1)
            {
                P1BFRef.AddUnitToVantage(cardDeploying);
                P1Cards--;
                if (P1Cards == 0)
                {
                    ForcePass(1);
                }
            }
            else if (turn == 2)
            {
                P2BFRef.AddUnitToVantage(cardDeploying);
                P2Cards--;
                if (P2Cards == 0)
                {
                    ForcePass(2);
                }
            }
        }
        else if (type == "Healer")
        {
        }
        else if (type == "Necromancer")
        {
        }

        ChangeTurn();
        CloseDetailsMenu();
    }