public override BaseEvent Clone() { MinimapEffect minimapEffect = ClassObjPool <MinimapEffect> .Get(); minimapEffect.CopyData(this); return(minimapEffect); }
protected override void CopyData(BaseEvent src) { base.CopyData(src); MinimapEffect minimapEffect = src as MinimapEffect; this.targetId = minimapEffect.targetId; this.selfId = minimapEffect.selfId; this.effect = minimapEffect.effect; }