public override BaseEvent Clone()
        {
            HitTriggerTick hitTriggerTick = ClassObjPool <HitTriggerTick> .Get();

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

            this.targetId             = tick.targetId;
            this.triggerId            = tick.triggerId;
            this.victimId             = tick.victimId;
            this.lastHit              = tick.lastHit;
            this.SelfSkillCombineID_1 = tick.SelfSkillCombineID_1;
            this.SelfSkillCombineID_2 = tick.SelfSkillCombineID_2;
            this.SelfSkillCombineID_3 = tick.SelfSkillCombineID_3;
            this.TargetSkillCombine_1 = tick.TargetSkillCombine_1;
            this.TargetSkillCombine_2 = tick.TargetSkillCombine_2;
            this.TargetSkillCombine_3 = tick.TargetSkillCombine_3;
            this.shape = tick.shape;
        }
示例#3
0
        protected override void CopyData(BaseEvent src)
        {
            base.CopyData(src);
            HitTriggerTick hitTriggerTick = src as HitTriggerTick;

            this.targetId             = hitTriggerTick.targetId;
            this.triggerId            = hitTriggerTick.triggerId;
            this.victimId             = hitTriggerTick.victimId;
            this.lastHit              = hitTriggerTick.lastHit;
            this.SelfSkillCombineID_1 = hitTriggerTick.SelfSkillCombineID_1;
            this.SelfSkillCombineID_2 = hitTriggerTick.SelfSkillCombineID_2;
            this.SelfSkillCombineID_3 = hitTriggerTick.SelfSkillCombineID_3;
            this.TargetSkillCombine_1 = hitTriggerTick.TargetSkillCombine_1;
            this.TargetSkillCombine_2 = hitTriggerTick.TargetSkillCombine_2;
            this.TargetSkillCombine_3 = hitTriggerTick.TargetSkillCombine_3;
            this.bCheckSight          = hitTriggerTick.bCheckSight;
            this.bSkillCombineChoose  = hitTriggerTick.bSkillCombineChoose;
            this.shape = hitTriggerTick.shape;
        }