void Start()
        {
            Debug.Assert(globe != null, "Globe object is not set");
            Debug.Assert(dateLabel != null, "DateLabel object is not set");
            Debug.Assert(playButtonLabel != null, "PlayButtonLabel object is not set");
            Debug.Assert(progress != null, "Progress object is not set");
            Debug.Assert(bufferRect != null, "Buffer rect object is not set");

            animationController = globe.GetComponent <GlobeAnimationController>();
        }
Esempio n. 2
0
        private IEnumerator Start()
        {
            WaitForEndOfFrame w = new WaitForEndOfFrame();

            while (!globe.parsedAvailableLayers)
            {
                yield return(w);
            }
            layerApplier = globe.GetComponent <LayerApplier>();
        }
Esempio n. 3
0
        private IEnumerator Start()
        {
            WaitForEndOfFrame wait = new WaitForEndOfFrame();

            lastAction = float.MinValue;
            SetupLayerEvents();
            while (!globe.parsedAvailableLayers || globe.availableLayers == null)
            {
                yield return(wait);
            }
            NextAction();
            isReady             = true;
            animationController = globe.GetComponent <GlobeAnimationController>();
        }
        private void Start()
        {
            Debug.Assert(globe != null, "Globe object is not set");
            Debug.Assert(dateLabel != null, "DateLabel object is not set");
            Debug.Assert(progressBar != null, "Progress object is not set");
            Debug.Assert(bufferBar != null, "Buffer rect object is not set");

            animationController = globe.GetComponent <GlobeAnimationController>();
            steps = (int)(endDate.ToDateTime - startDate.ToDateTime).TotalDays;
            print(steps);
            if (autoPlay)
            {
                Invoke("PrepareAnimation", 1f);
                Invoke("PlayAnimation", 10f);
            }
        }