public override BaseEvent Clone() { CheckConditionDuration checkConditionDuration = ClassObjPool <CheckConditionDuration> .Get(); checkConditionDuration.CopyData(this); return(checkConditionDuration); }
protected override void CopyData(BaseEvent src) { base.CopyData(src); CheckConditionDuration duration = src as CheckConditionDuration; this.trackId = duration.trackId; this.bHitTargetHero = duration.bHitTargetHero; this.bTriggerBullet = duration.bTriggerBullet; }