void OnEvent(MyEvent evt) { Log.AI("FanTan OnHit " + evt.type); var rd = Random.Range(0, 100); var critical = 1; if (rd < 25) { critical = 2; } SkillDamageCaculate.DoDamage(obj, 100 * critical, evt.attacker, false); }
//计算技能伤害 public void DoDamage(GameObject g) { SkillDamageCaculate.DoDamage(attacker, skillFullData, g); }
//计算技能伤害 public void DoDamage(GameObject g) { SkillDamageCaculate.DoDamage(attacker, skillFullData, g, isStaticShoot); }