Example #1
0
        public void StartTween(T info)
        {
            if ((Object)this.m_CoroutineContainer == (Object)null)
            {
                UnityEngine.Debug.LogWarning((object)"Coroutine container not configured... did you forget to call Init?");
            }
            else
            {
                if (this.m_Tween != null)
                {
                    this.m_CoroutineContainer.StopCoroutine(this.m_Tween);
                    this.m_Tween = (IEnumerator)null;
                }
                if (!this.m_CoroutineContainer.gameObject.activeInHierarchy)
                {
                    info.TweenValue(1f);
                }
                else
                {
                    this.m_Tween = TweenRunner <T> .Start(info);

                    this.m_CoroutineContainer.StartCoroutine(this.m_Tween);
                }
            }
        }
Example #2
0
        public void StartTween(T info)
        {
            if (this.m_CoroutineContainer == null)
            {
                Debug.LogWarning("Coroutine container not configured... did you forget to call Init?");
            }
            else
            {
                this.StopTween();
                if (!this.m_CoroutineContainer.gameObject.activeInHierarchy)
                {
                    info.TweenValue(1f);
                }
                else
                {
                    this.m_Tween = TweenRunner <T> .Start(info);

                    this.m_CoroutineContainer.StartCoroutine(this.m_Tween);
                }
            }
        }