Beispiel #1
0
 private void pay()
 {
     if (isPlayerRed)
     {
         dinero.redBuysModule();
         Debug.Log("RED" + dinero.getRedMoney());
     }
     else
     {
         dinero.blueBuysModule();
         Debug.Log("BLUE" + dinero.getBlueMoney());
     }
     dinero.updateTexts();
 }
Beispiel #2
0
    public void addNewPlayerBlue()
    {
        if (dineroController.blueHasEnoughMoneyForTotem())
        {
            switch (contBlue)
            {
            case 1:
                totem2Blue.gameObject.SetActive(true);
                break;

            case 2:
                totem3Blue.gameObject.SetActive(true);
                break;

            case 3:
                totem4Blue.gameObject.SetActive(true);
                break;

            case 4:
                totem5Blue.gameObject.SetActive(true);
                break;

            default:
                break;
            }
            ;
            dineroController.blueBuysTotem();
            dineroController.updateTexts();
            Debug.Log("Blue" + dineroController.getBlueMoney());
            if (contBlue < MAXPLAYERS)
            {
                contBlue++;
            }
        }
        else
        {
            dineroController.showWarning("BLUE", "TOTEM");
        }
    }