Esempio n. 1
0
        /// <summary>
        /// Lazy loads the fading group
        /// </summary>
        protected void LazyLoad()
        {
            if (m_FadingGroup != null)
            {
                return;
            }

            m_FadingGroup = GetComponent <FadingGroup>();
        }
Esempio n. 2
0
        protected virtual void Awake()
        {
            if (s_Instance != null)
            {
                Debug.Log("<color=lightblue>Trying to create a second instance of LoadingModal</color");
                Destroy(gameObject);
            }
            else
            {
                s_Instance = this;
            }

            m_Fader = GetComponent <FadingGroup>();
        }