示例#1
0
        public override BaseEvent Clone()
        {
            TriggerParticle particle = ClassObjPool <TriggerParticle> .Get();

            particle.CopyData(this);
            return(particle);
        }
示例#2
0
        protected override void CopyData(BaseEvent src)
        {
            base.CopyData(src);
            TriggerParticle particle = src as TriggerParticle;

            this.targetId                   = particle.targetId;
            this.objectSpaceId              = particle.objectSpaceId;
            this.resourceName               = particle.resourceName;
            this.bindPointName              = particle.bindPointName;
            this.bindPosOffset              = particle.bindPosOffset;
            this.bindRotOffset              = particle.bindRotOffset;
            this.scaling                    = particle.scaling;
            this.bEnableOptCull             = particle.bEnableOptCull;
            this.bBulletPos                 = particle.bBulletPos;
            this.bBulletDir                 = particle.bBulletDir;
            this.bBullerPosDir              = particle.bBullerPosDir;
            this.enableLayer                = particle.enableLayer;
            this.layer                      = particle.layer;
            this.enableTag                  = particle.enableTag;
            this.tag                        = particle.tag;
            this.applyActionSpeedToParticle = particle.applyActionSpeedToParticle;
            this.particleObject             = particle.particleObject;
            this.extend                     = particle.extend;
            this.bOnlyFollowPos             = particle.bOnlyFollowPos;
            this.bUseSkin                   = particle.bUseSkin;
            this.bUseSkinAdvance            = particle.bUseSkinAdvance;
            this.iDelayDisappearTime        = particle.iDelayDisappearTime;
        }
        protected override void CopyData(BaseEvent src)
        {
            base.CopyData(src);
            TriggerParticle triggerParticle = src as TriggerParticle;

            this.targetId              = triggerParticle.targetId;
            this.objectSpaceId         = triggerParticle.objectSpaceId;
            this.VirtualAttachBulletId = triggerParticle.VirtualAttachBulletId;
            this.resourceName          = triggerParticle.resourceName;
            this.bindPointName         = triggerParticle.bindPointName;
            this.bindPosOffset         = triggerParticle.bindPosOffset;
            this.bindRotOffset         = triggerParticle.bindRotOffset;
            this.scaling                    = triggerParticle.scaling;
            this.bEnableOptCull             = triggerParticle.bEnableOptCull;
            this.bBulletPos                 = triggerParticle.bBulletPos;
            this.bBulletDir                 = triggerParticle.bBulletDir;
            this.bBullerPosDir              = triggerParticle.bBullerPosDir;
            this.enableLayer                = triggerParticle.enableLayer;
            this.layer                      = triggerParticle.layer;
            this.enableTag                  = triggerParticle.enableTag;
            this.tag                        = triggerParticle.tag;
            this.applyActionSpeedToParticle = triggerParticle.applyActionSpeedToParticle;
            this.particleObject             = triggerParticle.particleObject;
            this.extend                     = triggerParticle.extend;
            this.bOnlyFollowPos             = triggerParticle.bOnlyFollowPos;
            this.bUseSkin                   = triggerParticle.bUseSkin;
            this.bUseSkinAdvance            = triggerParticle.bUseSkinAdvance;
            this.iDelayDisappearTime        = triggerParticle.iDelayDisappearTime;
            this.particleScaleGrow          = triggerParticle.particleScaleGrow;
            this.particleSystem             = triggerParticle.particleSystem;
            this.particleSystemSize         = triggerParticle.particleSystemSize;
            this.particleMeshRender         = triggerParticle.particleMeshRender;
            this.particleMeshRenderScale    = triggerParticle.particleMeshRenderScale;
        }