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); }
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); }