Example #1
0
        public override BaseEvent Clone()
        {
            PlayMaterialEffectDuration duration = ClassObjPool <PlayMaterialEffectDuration> .Get();

            duration.CopyData(this);
            return(duration);
        }
Example #2
0
        protected override void CopyData(BaseEvent src)
        {
            base.CopyData(src);
            PlayMaterialEffectDuration duration = src as PlayMaterialEffectDuration;

            this.targetId     = duration.targetId;
            this.effectType   = duration.effectType;
            this.highLitColor = duration.highLitColor;
        }