Example #1
0
    //****************************************************************************************************
    //
    //****************************************************************************************************

    private void Awake()
    {
        if (m_instance == null)
        {
            m_instance = this;
        }
    }
Example #2
0
    //****************************************************************************************************
    //
    //****************************************************************************************************

    private void OnDestroy()
    {
        if (m_instance == this)
        {
            m_instance = null;
        }

        Cancel();
    }