예제 #1
0
    public void DeploySpecialBooster(string type)
    {
        // whose turn, and which type of booster
        switch (type)
        {
        case "Booster_Frontline":
        {
            if (turn == 1)
            {
                P1BFRef.AddBooster(1, cardDeploying);
            }
            else
            {
                P2BFRef.AddBooster(1, cardDeploying);
            }
            break;
        }

        case "Booster_Vantage":
        {
            if (turn == 1)
            {
                P1BFRef.AddBooster(2, cardDeploying);
            }
            else
            {
                P2BFRef.AddBooster(2, cardDeploying);
            }
            break;
        }

        case "Booster_Shadow":
        {
            if (turn == 1)
            {
                P1BFRef.AddBooster(3, cardDeploying);
            }
            else
            {
                P2BFRef.AddBooster(3, cardDeploying);
            }
            break;
        }
        }
        if (turn == 1)
        {
            P1Cards--;
            if (P1Cards == 0)
            {
                ForcePass(1);
            }
        }
        else
        {
            P2Cards--;
            if (P2Cards == 0)
            {
                ForcePass(2);
            }
        }


        ChangeTurn();
        CloseDetailsMenu();

        SFXManager.instance.Play("Booster");
    }