Beispiel #1
0
    void OnDestroy()
    {
        if (m_luaOnDestroy != null)
        {
            m_luaOnDestroy();
        }

        m_client.Close();
        m_client.OnEvent       = null;
        m_client.OnMessage     = null;
        m_client.OnRoomMessage = null;
        m_client = null;

        FastNet.App.finalize();

        m_luaOnDestroy = null;
        m_luaUpdate    = null;
        m_luaStart     = null;
        m_mainScriptEnv.Dispose();
        m_mainScriptEnv = null;
    }