public override BaseEvent Clone() { CaptainSwitchTick captainSwitchTick = ClassObjPool <CaptainSwitchTick> .Get(); captainSwitchTick.CopyData(this); return(captainSwitchTick); }
protected override void CopyData(BaseEvent src) { base.CopyData(src); CaptainSwitchTick captainSwitchTick = src as CaptainSwitchTick; this.TargetId = captainSwitchTick.TargetId; this.isHostAcotr = captainSwitchTick.isHostAcotr; }