/// <summary> /// 生成Damage数据 /// </summary> Damage CreateDamage(DamageData damageData, CTakeDamageComponent target) { if (active && target != null && target.active) { //创建伤害 float damageValue = damageData.GetDamageValue(target); Damage damage = new Damage(damageData.batchOid, damageData.caster, this, target, damageData.damageSource, damageData.damageType, damageValue, damageData.getHitTime, damageData.hitBack, damageData.damageInterval, damageData.mark); return(damage); } else { return(null); } }