public override BaseEvent Clone() { MaterialFadeDuration duration = ClassObjPool <MaterialFadeDuration> .Get(); duration.CopyData(this); return(duration); }
protected override void CopyData(BaseEvent src) { base.CopyData(src); MaterialFadeDuration duration = src as MaterialFadeDuration; this.triggerId = duration.triggerId; this.FadeIn = duration.FadeIn; }