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

        fadingGroup = GetComponent <FadingGroup>();
    }
    protected virtual void Awake()
    {
        if (s_Instance == null)
        {
            s_Instance = this;
        }

        m_Fader = GetComponent <FadingGroup>();
    }
Beispiel #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>();
    }