public override BaseEvent Clone() { SkillInputCacheDuration duration = ClassObjPool <SkillInputCacheDuration> .Get(); duration.CopyData(this); return(duration); }
protected override void CopyData(BaseEvent src) { base.CopyData(src); SkillInputCacheDuration duration = src as SkillInputCacheDuration; this.targetId = duration.targetId; this.cacheSkill = duration.cacheSkill; this.cacheMove = duration.cacheMove; }