Ejemplo n.º 1
0
    public void UpArrowDamage()
    {
        if (coin >= upCostArrowDamage)
        {
            lm.SetCoin(lm.GetCoin() - upCostArrowDamage);
            coin          = lm.GetCoin();
            coinText.text = coin.ToString();

            lm.SetDamage(lm.GetDamage() + 2);
            arrowDamageText.text = lm.GetDamage().ToString();
        }
    }