public override BaseEvent Clone() { SetBehaviourModeTick tick = ClassObjPool <SetBehaviourModeTick> .Get(); tick.CopyData(this); return(tick); }
protected override void CopyData(BaseEvent src) { base.CopyData(src); SetBehaviourModeTick tick = src as SetBehaviourModeTick; this.targetId = tick.targetId; this.stopMove = tick.stopMove; this.clearMove = tick.clearMove; this.stopCurSkill = tick.stopCurSkill; this.delayStopCurSkill = tick.delayStopCurSkill; }