public static void Init(int port)
        {
            m_port = port;

            NetDebug.Log      = Debug.Log;
            NetDebug.LogError = Debug.LogWarning;
            NetDebug.LogError = Debug.LogError;

            ClientConfiguration configuration = (ClientConfiguration)ClientConfiguration.NewDefaultConfiguration(
                new TelepathyTransport(false),
                new NetCustomSerializer(),
                new MessageDispatcher(false))
                                                .EnablePing()
                                                .SetMsgCompress("gzip")
                                                .EnableEncryption()
            ;

            configuration.EnableReconnect();
            configuration.EnableStatistics();
            netManager = new NetworkClientManager(configuration);
            netManager.Start();

            controllerManager.Init(netManager);

            discoveryServerManager.Start(port);
            if (OnInit != null)
            {
                OnInit();
            }
        }