Ejemplo n.º 1
0
 protected override void CopyData(BaseEvent src)
 {
     base.CopyData(src);
     TriggerParticleTick tick = src as TriggerParticleTick;
     this.targetId = tick.targetId;
     this.objectSpaceId = tick.objectSpaceId;
     this.resourceName = tick.resourceName;
     this.lifeTime = tick.lifeTime;
     this.bindPointName = tick.bindPointName;
     this.bindPosOffset = tick.bindPosOffset;
     this.bindRotOffset = tick.bindRotOffset;
     this.scaling = tick.scaling;
     this.bEnableOptCull = tick.bEnableOptCull;
     this.bBulletPos = tick.bBulletPos;
     this.bBulletDir = tick.bBulletDir;
     this.bBullerPosDir = tick.bBullerPosDir;
     this.enableLayer = tick.enableLayer;
     this.layer = tick.layer;
     this.enableTag = tick.enableTag;
     this.tag = tick.tag;
     this.enableMaxLimit = tick.enableMaxLimit;
     this.MaxLimit = tick.MaxLimit;
     this.LimitType = tick.LimitType;
     this.applyActionSpeedToParticle = tick.applyActionSpeedToParticle;
     this.particleObject = tick.particleObject;
     this.extend = tick.extend;
     this.bUseSkin = tick.bUseSkin;
     this.bUseSkinAdvance = tick.bUseSkinAdvance;
 }
Ejemplo n.º 2
0
        public override BaseEvent Clone()
        {
            TriggerParticleTick triggerParticleTick = ClassObjPool <TriggerParticleTick> .Get();

            triggerParticleTick.CopyData(this);
            return(triggerParticleTick);
        }