protected override void CopyData(BaseEvent src) { base.CopyData(src); SpawnObjectDuration duration = src as SpawnObjectDuration; this.targetId = duration.targetId; this.parentId = duration.parentId; this.objectSpaceId = duration.objectSpaceId; this.prefabName = duration.prefabName; this.recreateExisting = duration.recreateExisting; this.modifyTranslation = duration.modifyTranslation; this.superTranslation = duration.superTranslation; this.translation = duration.translation; this.bTargetPosition = duration.bTargetPosition; this.targetPosition = duration.targetPosition; this.modifyDirection = duration.modifyDirection; this.direction = duration.direction; this.modifyScaling = duration.modifyScaling; this.scaling = duration.scaling; this.enableLayer = duration.enableLayer; this.layer = duration.layer; this.enableTag = duration.enableTag; this.tag = duration.tag; this.applyActionSpeedToAnimation = duration.applyActionSpeedToAnimation; this.applyActionSpeedToParticle = duration.applyActionSpeedToParticle; this.bUseSkin = duration.bUseSkin; this.bUseSkinAdvance = duration.bUseSkinAdvance; this.sightRadius = duration.sightRadius; this.bEyeObj = duration.bEyeObj; this.EyeLifeTime = duration.EyeLifeTime; this.EyeCfgIdByMonster = duration.EyeCfgIdByMonster; }
public override BaseEvent Clone() { SpawnObjectDuration spawnObjectDuration = ClassObjPool <SpawnObjectDuration> .Get(); spawnObjectDuration.CopyData(this); return(spawnObjectDuration); }
protected override void CopyData(BaseEvent src) { base.CopyData(src); SpawnObjectDuration spawnObjectDuration = src as SpawnObjectDuration; this.targetId = spawnObjectDuration.targetId; this.parentId = spawnObjectDuration.parentId; this.objectSpaceId = spawnObjectDuration.objectSpaceId; this.prefabName = spawnObjectDuration.prefabName; this.bMoveCollision = spawnObjectDuration.bMoveCollision; this.recreateExisting = spawnObjectDuration.recreateExisting; this.modifyTranslation = spawnObjectDuration.modifyTranslation; this.superTranslation = spawnObjectDuration.superTranslation; this.translation = spawnObjectDuration.translation; this.bTargetPosition = spawnObjectDuration.bTargetPosition; this.targetPosition = spawnObjectDuration.targetPosition; this.modifyDirection = spawnObjectDuration.modifyDirection; this.direction = spawnObjectDuration.direction; this.modifyScaling = spawnObjectDuration.modifyScaling; this.scaling = spawnObjectDuration.scaling; this.enableLayer = spawnObjectDuration.enableLayer; this.layer = spawnObjectDuration.layer; this.enableTag = spawnObjectDuration.enableTag; this.tag = spawnObjectDuration.tag; this.applyActionSpeedToAnimation = spawnObjectDuration.applyActionSpeedToAnimation; this.applyActionSpeedToParticle = spawnObjectDuration.applyActionSpeedToParticle; this.bUseSkin = spawnObjectDuration.bUseSkin; this.bUseSkinAdvance = spawnObjectDuration.bUseSkinAdvance; this.sightRadius = spawnObjectDuration.sightRadius; this.SightRadiusGrowth = spawnObjectDuration.SightRadiusGrowth; this.bVisibleByFow = spawnObjectDuration.bVisibleByFow; this.bUpdateWithParentLerpPosition = spawnObjectDuration.bUpdateWithParentLerpPosition; this.bCheckVisibleByShape = spawnObjectDuration.bCheckVisibleByShape; this.bEyeObj = spawnObjectDuration.bEyeObj; this.EyeLifeTime = spawnObjectDuration.EyeLifeTime; this.EyeLiftTimeGrowth = spawnObjectDuration.EyeLiftTimeGrowth; this.EyePerishAdvTime = spawnObjectDuration.EyePerishAdvTime; this.EyeCfgIdByMonster = spawnObjectDuration.EyeCfgIdByMonster; this.bInvisibleBullet = spawnObjectDuration.bInvisibleBullet; this.bForbidBulletInObstacle = spawnObjectDuration.bForbidBulletInObstacle; }