public void Debug(object message) { if (!application.IsMainThread) { context.Post((state) => { UnityEngine.Debug.Log(message); }); return; } UnityEngine.Debug.Log(message); }