/// <summary> /// Lazy loads the fading group /// </summary> protected void LazyLoad() { if (m_FadingGroup != null) { return; } m_FadingGroup = GetComponent <FadingGroup>(); }
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>(); }