public void addNewPlayerRed() { if (dineroController.redHasEnoughMoneyForTotem()) { switch (contRed) { case 1: totem2Red.gameObject.SetActive(true); break; case 2: totem3Red.gameObject.SetActive(true); break; case 3: totem4Red.gameObject.SetActive(true); break; case 4: totem5Red.gameObject.SetActive(true); break; default: break; } ; dineroController.redBuysTotem(); dineroController.updateTexts(); Debug.Log("Red" + dineroController.getRedMoney()); if (contRed < MAXPLAYERS) { contRed++; } } else { dineroController.showWarning("RED", "TOTEM"); } }
private void pay() { if (isPlayerRed) { dinero.redBuysModule(); Debug.Log("RED" + dinero.getRedMoney()); } else { dinero.blueBuysModule(); Debug.Log("BLUE" + dinero.getBlueMoney()); } dinero.updateTexts(); }
void Start() { dineroController = dinero.GetComponent <DineroController>(); dineroController.updateTexts(); }