public override BaseEvent Clone() { SkillFuncDuration duration = ClassObjPool <SkillFuncDuration> .Get(); duration.CopyData(this); return(duration); }
protected override void CopyData(BaseEvent src) { base.CopyData(src); SkillFuncDuration duration = src as SkillFuncDuration; this.SkillFuncType = duration.SkillFuncType; this.m_context = duration.m_context; this.m_bSucceeded = duration.m_bSucceeded; this.bInit = duration.bInit; }