Пример #1
0
        /// Awake function
        ///
        private void Awake()
        {
            if (string.IsNullOrEmpty(m_category) == true)
            {
                m_category = LocalisedTextIdentifiers.k_categoryGame;
            }

            if (m_textComponent == null)
            {
                m_textComponent = GetComponent <TMP_Text>();
            }
            Debug.Assert(m_textComponent != null, string.Format("Could not find TextMeshPro component on '{0}", transform.name));

            GlobalDirector.CallWhenReady(OnDirectorReady);
        }
Пример #2
0
 /// Awake function
 ///
 private void Awake()
 {
     GlobalDirector.CallWhenReady(Initialise);
 }