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