Exemple #1
0
    public void DealDamage(bool player, double _amount)
    {
        AnimaText  animaText = new AnimaText();
        GameObject target    = Hero.Heroes[0];

        if (!player)
        {
            target = Hero.Heroes[1];
        }
        int amount = (int)_amount;

        animaText.DisplayText(target, "-" + amount.ToString(), Color.red, 1.5f);
    }
Exemple #2
0
    public void GainArmor(bool player, double _amount)
    {
        AnimaText  animaText = new AnimaText();
        GameObject target    = Hero.Heroes[0];

        if (!player)
        {
            target = Hero.Heroes[1];
        }
        int amount = (int)_amount;

        animaText.DisplayText(target, "Armor +" + amount.ToString(), Color.gray, 1.5f);
    }
Exemple #3
0
    public void UpgradeCards(bool player, double _amount)
    {
        AnimaText animaText = new AnimaText();
        int       iStart    = 0;

        if (!player)
        {
            iStart += 10;
        }
        int amount = (int)_amount;

        for (int i = iStart; i < iStart + Card.SIZE / 2; i++)
        {
            if (Card.occupied[i])
            {
                Card.cards[i].value += amount;
                Card.Cards[i].GetComponentInChildren <Text>().text = "     " + Card.cards[i].element.Substring(0, 1) + "\n<size=34>" + Card.cards[i].value + "</size>\n" + Card.cards[i].element.Substring(0, 1) + "     ";
                animaText.DisplayText(Card.Cards[i], "+" + amount.ToString(), Color.green, 1.5f);
            }
        }
    }