Exemple #1
0
    public void NormalAttat(HeroTemplate role)
    {
        if (role == null)
        {
            return;
        }
        float damage = BattleUtil.CalcDamage(m_damage, (float)damageInteval);

#if UNITY_EDITOR
        Debug.Log(name + "对" + role.name + "造成了" + damage + "点伤害");
#endif
        role.UnderAttact(damage);
    }
Exemple #2
0
 public void NormalAttat(HeroTemplate role)
 {
     if(role == null)
     {
         return;
     }
     float damage = BattleUtil.CalcDamage(m_damage, (float)damageInteval);
     #if UNITY_EDITOR
     Debug.Log(name + "对" + role.name + "造成了" + damage + "点伤害");
     #endif
     role.UnderAttact(damage);
 }