public void PrintDebugMessage(string message)
        {
            if (debugPanelController != null)
            {
                //debugPanelController.PushMessage(message);

                MainThreadTaskQueue.InvokeOnMainThread(() =>
                {
                    debugPanelController.PushMessage(message);
                });
            }
        }
Esempio n. 2
0
        //------------------------Debug panel-----------------------------------

        public void DebugMessage(string msgLine)
        {
            if (!debugPanelController.Equals(null))
            {
                string[] msgLineArr = msgLine.Split(Environment.NewLine.ToCharArray());
                if (msgLineArr != null && msgLineArr.Length > 0)
                {
                    foreach (string line in msgLineArr)
                    {
                        MainThreadTaskQueue.InvokeOnMainThread(() =>
                        {
                            debugPanelController.PushMessage(line);
                        });
                    }
                }
                else
                {
                    MainThreadTaskQueue.InvokeOnMainThread(() =>
                    {
                        debugPanelController.PushMessage(msgLine);
                    });
                }
            }
        }