コード例 #1
0
        public override BaseEvent Clone()
        {
            FilterTargetDistance filterTargetDistance = ClassObjPool <FilterTargetDistance> .Get();

            filterTargetDistance.CopyData(this);
            return(filterTargetDistance);
        }
コード例 #2
0
        protected override void CopyData(BaseEvent src)
        {
            base.CopyData(src);
            FilterTargetDistance filterTargetDistance = src as FilterTargetDistance;

            if (filterTargetDistance != null)
            {
                this.sourceId     = filterTargetDistance.sourceId;
                this.targetId     = filterTargetDistance.targetId;
                this.bCheckFilter = filterTargetDistance.bCheckFilter;
            }
        }