void FixedUpdate()
    {
        #if !UNITY_EDITOR
        string message = GetMessages();

        if (message != "")
        {
            NetworkEventManager.RecNetworkEvent(message);
            ConsoleLog.Log(message);
        }
        #endif
    }
    public void init()
    {
        if (hasInit)
        {
            return;
        }
        hasInit = true;
        NetworkEventManager.Instance.EventListener += ListenForConsoleEvents;
        NetworkEventObject consoleListeningEvent = new NetworkEventObject();

        consoleListeningEvent.e = NetworkEventObject.EventType.Log;
        consoleListeningEvent.p = "Listening for console logs";
        NetworkEventManager.RecNetworkEvent(JsonUtility.ToJson(consoleListeningEvent));
    }