Artemis.Profiles.Layers.Animations.SlideDownAnimation.Update C# (CSharp) Method

Update() public method

public Update ( LayerModel layerModel, bool updateAnimations ) : void
layerModel LayerModel
updateAnimations bool
return void
        public void Update(LayerModel layerModel, bool updateAnimations)
        {
            var progress = layerModel.Properties.AnimationProgress;
            if (MustExpire(layerModel))
                progress = 0;
            progress = progress + layerModel.Properties.AnimationSpeed*2;

            // If not previewing, store the animation progress in the actual model for the next frame
            if (updateAnimations)
                layerModel.Properties.AnimationProgress = progress;
        }