public void Init(OnErrorReply onConnected)
        {
            MonoComponent = ServervilleHttpComponent.Get();

            GetSerializerSettings();

            if (onConnected != null)
            {
                onConnected(null);
            }
        }
        public static ServervilleHttpComponent Get()
        {
            GameObject obj = GameObject.Find("/Serverville");

            if (obj == null)
            {
                obj = new GameObject("Serverville");
                DontDestroyOnLoad(obj);
            }

            ServervilleHttpComponent http = obj.GetComponent <ServervilleHttpComponent>();

            if (http == null)
            {
                http = obj.AddComponent <ServervilleHttpComponent>();
            }

            return(http);
        }