コード例 #1
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>();
        }
コード例 #2
0
        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);
            }
        }