コード例 #1
0
ファイル: TMP_Dropdown.cs プロジェクト: KauelChile/Ceresita
        protected override void Awake()

        {
#if UNITY_EDITOR
            if (!Application.isPlaying)
            {
                return;
            }
#endif



            m_AlphaTweenRunner = new TweenRunner <FloatTween>();

            m_AlphaTweenRunner.Init(this);



            if (m_CaptionImage)
            {
                m_CaptionImage.enabled = (m_CaptionImage.sprite != null);
            }



            if (m_Template)
            {
                m_Template.gameObject.SetActive(false);
            }
        }
コード例 #2
0
ファイル: TMP_Dropdown.cs プロジェクト: BaseDorp/TankGame
        protected override void Start()
        {
            m_AlphaTweenRunner = new TweenRunner <FloatTween>();
            m_AlphaTweenRunner.Init(this);
            base.Start();

            RefreshShownValue();
        }
コード例 #3
0
 protected override void Awake()
 {
     this.m_AlphaTweenRunner = new TweenRunner <FloatTween>();
     this.m_AlphaTweenRunner.Init(this);
     if (this.m_CaptionImage)
     {
         this.m_CaptionImage.enabled = (this.m_CaptionImage.sprite != null);
     }
     if (this.m_Template)
     {
         this.m_Template.gameObject.SetActive(false);
     }
 }
コード例 #4
0
 protected override void Awake()
 {
     if (Application.isPlaying)
     {
         m_AlphaTweenRunner = new TweenRunner <FloatTween>();
         m_AlphaTweenRunner.Init((MonoBehaviour)(object)this);
         if ((bool)(UnityEngine.Object)(object) m_CaptionImage)
         {
             ((Behaviour)(object)m_CaptionImage).enabled = (m_CaptionImage.sprite != null);
         }
         if ((bool)m_Template)
         {
             m_Template.gameObject.SetActive(false);
         }
     }
 }
コード例 #5
0
        public void StartTween(T info)
        {
            if (this.m_CoroutineContainer == null)
            {
                Debug.LogWarning("Coroutine container not configured... did you forget to call Init?");
                return;
            }
            this.StopTween();
            if (!this.m_CoroutineContainer.gameObject.activeInHierarchy)
            {
                info.TweenValue(1f);
                return;
            }
            this.m_Tween = TweenRunner <T> .Start(info);

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