FlowManager.OnDestroy C# (CSharp) Method

OnDestroy() private method

private OnDestroy ( ) : void
return void
    private void OnDestroy()
    {
        StopAllCoroutines();

        if (m_LoadingScreen != null)
        {
            Destroy(m_LoadingScreen);
            m_LoadingScreen = null;
        }
        if (m_Overlay != null)
        {
            Destroy(m_Overlay);
            m_Overlay = null;
        }

        m_Instance = null;
        m_ActionController = null;
        m_OpenedViews.Clear();
        m_OpenedViews = null;
        m_ClosedViews.Clear();
        m_ClosedViews = null;
        m_OpeningView = null;
        m_ClosingViews.Clear();
        m_ClosingViews = null;
        m_GainingFocusView = null;
        m_LosingFocusView = null;
        m_CurrentActionData = null;
        m_QueuedActions.Clear();
        m_QueuedActions = null;
    }