Пример #1
0
        public override BaseEvent Clone()
        {
            BounceBulletDuration bounceBulletDuration = ClassObjPool <BounceBulletDuration> .Get();

            bounceBulletDuration.CopyData(this);
            return(bounceBulletDuration);
        }
Пример #2
0
        protected override void CopyData(BaseEvent src)
        {
            base.CopyData(src);
            BounceBulletDuration bounceBulletDuration = src as BounceBulletDuration;

            this.targetId = bounceBulletDuration.targetId;
            this.attackId = bounceBulletDuration.attackId;
            this.destId   = bounceBulletDuration.destId;
            this.effectCountMap.Clear();
            this.velocity                   = bounceBulletDuration.velocity;
            this.bMoveRotate                = bounceBulletDuration.bMoveRotate;
            this.tarActor                   = bounceBulletDuration.tarActor;
            this.moveActor                  = bounceBulletDuration.moveActor;
            this.attackActor                = bounceBulletDuration.attackActor;
            this.destPosition               = bounceBulletDuration.destPosition;
            this.stopCondtion               = bounceBulletDuration.stopCondtion;
            this.lastTime                   = bounceBulletDuration.lastTime;
            this.maxTargetCount             = bounceBulletDuration.maxTargetCount;
            this.maxEffectCount             = bounceBulletDuration.maxEffectCount;
            this.searchRadius               = bounceBulletDuration.searchRadius;
            this.gravity                    = bounceBulletDuration.gravity;
            this.TargetSkillCombine_1       = bounceBulletDuration.TargetSkillCombine_1;
            this.TargetSkillCombine_2       = bounceBulletDuration.TargetSkillCombine_2;
            this.TargetSkillCombine_3       = bounceBulletDuration.TargetSkillCombine_3;
            this.bHeroWithPrioritySelection = bounceBulletDuration.bHeroWithPrioritySelection;
        }