Пример #1
0
 // Lazy loads the loading panel
 public void LazyLoadLoadingPanel()
 {
     if (m_LoadingScreen != null)
     {
         return;
     }
     m_LoadingScreen = LoadingModal.s_Instance.fader;
 }
Пример #2
0
    /// <summary>
    /// Lazy loads the fading group
    /// </summary>
    protected void LazyLoad()
    {
        if (fadingGroup != null)
        {
            return;
        }

        fadingGroup = GetComponent <FadingGroup>();
    }
Пример #3
0
    protected virtual void Awake()
    {
        if (s_Instance == null)
        {
            s_Instance = this;
        }

        m_Fader = GetComponent <FadingGroup>();
    }
Пример #4
0
    protected virtual void Awake()
    {
        if (instance != null)
        {
            Debug.Log("<color=lightblue>Trying to create a second instance of LoadingModal</color");
            Destroy(gameObject);
        }
        else
        {
            instance = this;
        }

        fader = GetComponent <FadingGroup>();
    }