Beispiel #1
0
 // Called by Unity prior to deserialization,
 // should not be called by users
 protected Graphic()
 {
     if (m_ColorTweenRunner == null)
     {
         m_ColorTweenRunner = new TweenRunner <ColorTween>();
     }
     m_ColorTweenRunner.Init(this);
 }
        protected override void Start()
        {
            m_AlphaTweenRunner = new TweenRunner <FloatTween>();
            m_AlphaTweenRunner.Init(this);
            base.Start();

            RefreshShownValue();
        }
 // Called by Unity prior to deserialization,
 // should not be called by users
 protected Graphic()
 {
     if (m_ColorTweenRunner == null)
     {
         m_ColorTweenRunner = new TweenRunner <ColorTween>();
     }
     m_ColorTweenRunner.Init(this);
     useLegacyMeshGeneration = true;
 }
Beispiel #4
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);
     }
 }
Beispiel #5
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);
            }
        }