public override BaseEvent Clone() { FreezeActorDuration duration = ClassObjPool <FreezeActorDuration> .Get(); duration.CopyData(this); return(duration); }
protected override void CopyData(BaseEvent src) { base.CopyData(src); FreezeActorDuration duration = src as FreezeActorDuration; this.targetId = duration.targetId; this.freezeHeight = duration.freezeHeight; this.actorObj = duration.actorObj; this.curAnimName = duration.curAnimName; this.rovController = duration.rovController; }
protected override void CopyData(BaseEvent src) { base.CopyData(src); FreezeActorDuration freezeActorDuration = src as FreezeActorDuration; this.targetId = freezeActorDuration.targetId; this.freezeHeight = freezeActorDuration.freezeHeight; this.actorObj = freezeActorDuration.actorObj; this.curAnimName = freezeActorDuration.curAnimName; this.rovController = freezeActorDuration.rovController; this.forbidMove = freezeActorDuration.forbidMove; this.forbidSkill = freezeActorDuration.forbidSkill; this.IsFreeze = freezeActorDuration.IsFreeze; }