protected override void CopyData(BaseEvent src) { base.CopyData(src); MoveBulletDuration moveBulletDuration = src as MoveBulletDuration; this.targetId = moveBulletDuration.targetId; this.destId = moveBulletDuration.destId; this.MoveType = moveBulletDuration.MoveType; this.targetPosition = moveBulletDuration.targetPosition; this.offsetDir = moveBulletDuration.offsetDir; this.velocity = moveBulletDuration.velocity; this.distance = moveBulletDuration.distance; this.gravity = moveBulletDuration.gravity; this.bMoveRotate = moveBulletDuration.bMoveRotate; this.bAdjustSpeed = moveBulletDuration.bAdjustSpeed; this.acceleration = moveBulletDuration.acceleration; this.bBulletUseDir = moveBulletDuration.bBulletUseDir; this.bUseIndicatorDir = moveBulletDuration.bUseIndicatorDir; this.bReachDestStop = moveBulletDuration.bReachDestStop; this.bResetMoveDistance = moveBulletDuration.bResetMoveDistance; this.bMoveOnXAxis = moveBulletDuration.bMoveOnXAxis; this.rotateBodyDegreeSpeed = moveBulletDuration.rotateBodyDegreeSpeed; this.rotateBodyRadius = moveBulletDuration.rotateBodyRadius; this.rotateBodyHeight = moveBulletDuration.rotateBodyHeight; this.rotateBodyFindEnemyLatency = moveBulletDuration.rotateBodyFindEnemyLatency; this.rotateBodyFindEnemyRadius = moveBulletDuration.rotateBodyFindEnemyRadius; this.rotateBodyFindEnemyCd = moveBulletDuration.rotateBodyFindEnemyCd; this.rotateBodyBulletCount = moveBulletDuration.rotateBodyBulletCount; this.bFindTargetByRotateBodyBullet = moveBulletDuration.bFindTargetByRotateBodyBullet; this.Context.CopyData(ref moveBulletDuration.Context); }
public override BaseEvent Clone() { MoveBulletDuration duration = ClassObjPool <MoveBulletDuration> .Get(); duration.CopyData(this); return(duration); }
public void Reset(MoveBulletDuration InBulletDuration) { this.length = InBulletDuration.length; this.targetId = InBulletDuration.targetId; this.destId = InBulletDuration.destId; this.MoveType = InBulletDuration.MoveType; this.targetPosition = InBulletDuration.targetPosition; this.offsetDir = InBulletDuration.offsetDir; this.velocity = InBulletDuration.velocity; this.acceleration = InBulletDuration.acceleration; this.distance = InBulletDuration.distance; this.gravity = InBulletDuration.gravity; this.bMoveRotate = InBulletDuration.bMoveRotate; this.bAdjustSpeed = InBulletDuration.bAdjustSpeed; this.bBulletUseDir = InBulletDuration.bBulletUseDir; this.bUseIndicatorDir = InBulletDuration.bUseIndicatorDir; this.bReachDestStop = InBulletDuration.bReachDestStop; this.bResetMoveDistance = InBulletDuration.bResetMoveDistance; this.lastVelocity = (this.lastLerpVelocity = 0); this.stopLerpCondtion = false; this.bMoveOnXAxis = InBulletDuration.bMoveOnXAxis; this.distanceZ0 = InBulletDuration.distanceZ0; this.distanceZ1 = InBulletDuration.distanceZ1; this.distanceX = InBulletDuration.distanceX; this.rotateBodyDegreeSpeed = InBulletDuration.rotateBodyDegreeSpeed; this.rotateBodyRadius = InBulletDuration.rotateBodyRadius; this.rotateBodyHeight = InBulletDuration.rotateBodyHeight; this.rotateBodyFindEnemyLatency = InBulletDuration.rotateBodyFindEnemyLatency; this.rotateBodyFindEnemyRadius = InBulletDuration.rotateBodyFindEnemyRadius; this.rotateBodyFindEnemyCd = InBulletDuration.rotateBodyFindEnemyCd; this.rotateBodyBulletCount = InBulletDuration.rotateBodyBulletCount; this.bFindTargetByRotateBodyBullet = InBulletDuration.bFindTargetByRotateBodyBullet; }
public void Reset(MoveBulletDuration InBulletDuration) { this.length = InBulletDuration.length; this.targetId = InBulletDuration.targetId; this.destId = InBulletDuration.destId; this.MoveType = InBulletDuration.MoveType; this.targetPosition = InBulletDuration.targetPosition; this.offsetDir = InBulletDuration.offsetDir; this.velocity = InBulletDuration.velocity; this.distance = InBulletDuration.distance; this.gravity = InBulletDuration.gravity; this.bMoveRotate = InBulletDuration.bMoveRotate; this.bAdjustSpeed = InBulletDuration.bAdjustSpeed; }
protected override void CopyData(BaseEvent src) { base.CopyData(src); MoveBulletDuration duration = src as MoveBulletDuration; this.targetId = duration.targetId; this.destId = duration.destId; this.MoveType = duration.MoveType; this.targetPosition = duration.targetPosition; this.offsetDir = duration.offsetDir; this.velocity = duration.velocity; this.distance = duration.distance; this.gravity = duration.gravity; this.bMoveRotate = duration.bMoveRotate; this.bAdjustSpeed = duration.bAdjustSpeed; this.Context.CopyData(ref duration.Context); }
public void Reset(MoveBulletDuration InBulletDuration) { this.length = InBulletDuration.length; this.targetId = InBulletDuration.targetId; this.destId = InBulletDuration.destId; this.MoveType = InBulletDuration.MoveType; this.targetPosition = InBulletDuration.targetPosition; this.offsetDir = InBulletDuration.offsetDir; this.velocity = InBulletDuration.velocity; this.acceleration = InBulletDuration.acceleration; this.distance = InBulletDuration.distance; this.gravity = InBulletDuration.gravity; this.bMoveRotate = InBulletDuration.bMoveRotate; this.bAdjustSpeed = InBulletDuration.bAdjustSpeed; this.bBulletUseDir = InBulletDuration.bBulletUseDir; this.lastVelocity = this.lastLerpVelocity = 0; this.stopLerpCondtion = false; }
protected override void CopyData(BaseEvent src) { base.CopyData(src); MoveBulletDuration moveBulletDuration = src as MoveBulletDuration; this.targetId = moveBulletDuration.targetId; this.destId = moveBulletDuration.destId; this.MoveType = moveBulletDuration.MoveType; this.targetPosition = moveBulletDuration.targetPosition; this.offsetDir = moveBulletDuration.offsetDir; this.velocity = moveBulletDuration.velocity; this.distance = moveBulletDuration.distance; this.gravity = moveBulletDuration.gravity; this.bMoveRotate = moveBulletDuration.bMoveRotate; this.bAdjustSpeed = moveBulletDuration.bAdjustSpeed; this.acceleration = moveBulletDuration.acceleration; this.bBulletUseDir = moveBulletDuration.bBulletUseDir; this.bUseIndicatorDir = moveBulletDuration.bUseIndicatorDir; this.bReachDestStop = moveBulletDuration.bReachDestStop; this.bResetMoveDistance = moveBulletDuration.bResetMoveDistance; this.Context.CopyData(ref moveBulletDuration.Context); }