Пример #1
0
    /*
     * Returns the time of the next auto-attack
     * */
    public float autoAttack(MinionScript enemy)
    {
        float damageAmount = getWeaponDamage();
        if(finalHourActive){
            damageAmount *= 1.4f;
            awardHealth (damageAmount * .5f);
        }

            a.Play("Attack" + (((int)(Random.value * 2)) + 1));
        enemy.damage(damageAmount);
        return Time.time + WeaponSpeed;
    }
Пример #2
0
 /*
  * Returns the time of the next auto-attack
  * */
 public float autoAttack(MinionScript enemy)
 {
     a.Play("Attack" + (((int)(Random.value * 3)) + 1));
     enemy.damage(WeaponDamage);
     return Time.time + WeaponSpeed;
 }