public override void SpawnItem(AnimationClass ActiveAnimation, AnimationClass.AnimationLayer ActiveLayer, int KeyFrame) { BackgroundKeyFrame ActiveBackgroundKeyFrame = (BackgroundKeyFrame)DicAnimationKeyFrame[KeyFrame]; if (ActiveAnimation.ActiveAnimationBackground != null) { ActiveAnimation.ActiveAnimationBackground.MoveSpeed = new Vector3(ActiveBackgroundKeyFrame.SpeedX, ActiveBackgroundKeyFrame.SpeedY, ActiveBackgroundKeyFrame.SpeedZ); } }
public BackgroundKeyFrame(AnimationObjectKeyFrame Copy) { BackgroundKeyFrame ActiveBackgroundKeyFrame = Copy as BackgroundKeyFrame; if (ActiveBackgroundKeyFrame != null) { _SpeedX = ActiveBackgroundKeyFrame._SpeedX; _SpeedY = ActiveBackgroundKeyFrame._SpeedY; _SpeedZ = ActiveBackgroundKeyFrame._SpeedZ; _SpeedYaw = ActiveBackgroundKeyFrame._SpeedYaw; _SpeedPitch = ActiveBackgroundKeyFrame._SpeedPitch; _SpeedRoll = ActiveBackgroundKeyFrame._SpeedRoll; } }
public override AnimationObjectKeyFrame Copy(AnimationClass.AnimationLayer ActiveLayer) { BackgroundKeyFrame NewBackgroundKeyFrame = new BackgroundKeyFrame(this); return(NewBackgroundKeyFrame); }