public override BaseEvent Clone() { ReviveTimerTick reviveTimerTick = ClassObjPool <ReviveTimerTick> .Get(); reviveTimerTick.CopyData(this); return(reviveTimerTick); }
protected override void CopyData(BaseEvent src) { base.CopyData(src); ReviveTimerTick reviveTimerTick = src as ReviveTimerTick; this.targetId = reviveTimerTick.targetId; this.yOffset = reviveTimerTick.yOffset; }