Пример #1
0
        public void PrepAnimation()
        {
            Debug.LogFormat("Preparing animation from {0} to {1}", startDate, endDate);
            Layer layer = globe.layers[1].wmsLayer;

            animationController.PrepareAnimation(startDate, endDate, 31, new List <Layer> {
                layer
            });
            animationController.OnAnimationStep += OnAnimationStep;
        }
        public void PrepareAnimation()
        {
            List <Layer> toAnimate = globe.availableLayers.Where(kv => presetLoader.presets[presetLoader.currentPreset]
                                                                 .layersInPreset
                                                                 .Contains(kv.Key)).Select(k => k.Value).ToList();

            animationController.layersOrder = presetLoader.presets[presetLoader.currentPreset].layersInPreset;
            animationController.PrepareAnimation(startDate.ToDateTime, endDate.ToDateTime, steps, toAnimate);
            animationController.OnAnimationStep += OnAnimationStep;
            animationController.setPrecache((int)(steps * 0.66f));
        }