Esempio n. 1
0
    // Revamped smaller functions for deployment
    //------------------------------------------------------------------------------
    // actual deployment functions

    public void DeployToFrontline()
    {
        cardDeploying.GetComponent <Card>().SetCardStatus("Deployed");
        if (turn == 1)
        {
            P1BFRef.AddUnitToFrontline(cardDeploying);
            P1Cards--;
            if (P1Cards == 0)
            {
                ForcePass(1);
            }
        }
        else if (turn == 2)
        {
            P2BFRef.AddUnitToFrontline(cardDeploying);
            P2Cards--;
            if (P2Cards == 0)
            {
                ForcePass(2);
            }
        }

        ChangeTurn();
        CloseDetailsMenu();
    }