示例#1
0
        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);
            }
        }
示例#2
0
            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;
                }
            }
示例#3
0
            public override AnimationObjectKeyFrame Copy(AnimationClass.AnimationLayer ActiveLayer)
            {
                BackgroundKeyFrame NewBackgroundKeyFrame = new BackgroundKeyFrame(this);

                return(NewBackgroundKeyFrame);
            }