Beispiel #1
0
 public void BidColorClicked(int color)
 {
     if (bidColor != TrumpColor.undefined)
     {
         SetWhite(colorButtons[(int)bidColor]);
     }
     SetRed(colorButtons[color]);
     bidColor = (TrumpColor)color;
     Debug.Log("Bid color: " + bidColor.ToString());
     if (bidNumber != 0 && bidColor != TrumpColor.undefined)
     {
         actionButtons[3].interactable = true;
     }
 }
Beispiel #2
0
 public void BidNumberInitialization()
 {
     if (bidNumber != 0)
     {
         SetWhite(numberButtons[bidNumber - 1]); bidNumber = 0;
     }
     foreach (Button b in numberButtons)
     {
         b.interactable = true; SetWhite(b);
     }
     for (int i = 0; i < highestNumber - 1; i++)
     {
         numberButtons[i].interactable = false;
     }
     Debug.Log(highestColor.ToString() + " " + highestNumber);
     if (highestColor == TrumpColor.BA && highestNumber != 0)
     {
         numberButtons[highestNumber - 1].interactable = false;
     }
 }
Beispiel #3
0
    public void BidActions(string action)
    {
        switch (action)
        {
        case "Pass":
            controller.client.SendMessage($"Bidding:{controller.players[0].position}:Pass");
            break;

        case "Counter":
            controller.client.SendMessage($"Bidding:{controller.players[0].position}:Counter");
            break;

        case "Recounter":
            controller.client.SendMessage($"Bidding:{controller.players[0].position}:Recounter");
            break;

        case "Bid":
            controller.client.SendMessage($"Bidding:{controller.players[0].position}:Bid:{bidNumber}:{bidColor.ToString()}");
            break;
        }
        auctionPhaseScreen.gameObject.SetActive(false);
    }