Exemple #1
0
    public override void AddDisplayValue()
    {
        //only play glow and tile particle effect when there is value to add to team attack
        if (teamAttack.GetToBeAddAmount() > teamAttack.MinTeamAttackAmount)
        {
            PlayGlow();
            PlayTileParticle();
        }

        initialValue = currentValue;

        desiredValue = teamAttack.CurrentTeamAttackAmount;
        desiredValue = Mathf.Clamp(desiredValue, teamAttack.MinTeamAttackAmount, teamAttack.MaxTeamAttackAmount);
    }