// Lazy loads the loading panel public void LazyLoadLoadingPanel() { if (m_LoadingScreen != null) { return; } m_LoadingScreen = LoadingModal.s_Instance.fader; }
/// <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>(); }
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>(); }