Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
        protected override void Start()
        {
            m_AlphaTweenRunner = new TweenRunner <FloatTween>();
            m_AlphaTweenRunner.Init(this);
            base.Start();

            RefreshShownValue();
        }
Esempio n. 3
0
 protected override void Awake()
 {
     m_AlphaTweenRunner = new TweenRunner <FloatTween>();
     m_AlphaTweenRunner.Init(this);
     if ((bool)m_CaptionImage)
     {
         m_CaptionImage.enabled = (m_CaptionImage.sprite != null);
     }
     if ((bool)m_Template)
     {
         m_Template.gameObject.SetActive(value: false);
     }
 }
Esempio n. 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);
         }
     }
 }