private static void CreateHelperGameObject()
        {
            GameObject helperGO             = new GameObject("MainThreadDispatchHelper");
            MainThreadDispatchHelper helper = helperGO.AddComponent <MainThreadDispatchHelper>();

            helper.hideFlags = helperGO.hideFlags = HideFlags.HideInHierarchy | HideFlags.HideInInspector;
            GameObject.DontDestroyOnLoad(helperGO);
            helperCreated = true;
        }
        private static void CreateHelperGameObject()
        {
            GameObject gameObject = new GameObject("MainThreadDispatchHelper");
            MainThreadDispatchHelper mainThreadDispatchHelper = gameObject.AddComponent <MainThreadDispatchHelper>();

            UnityEngine.Object arg_1F_0 = mainThreadDispatchHelper;
            gameObject.hideFlags = HideFlags.HideInInspector;
            arg_1F_0.hideFlags   = HideFlags.HideInInspector;
            UnityEngine.Object.DontDestroyOnLoad(gameObject);
            MainThreadDispatcher.helperCreated = true;
        }
        private static void CreateHelperGameObject()
        {
            GameObject helperGO             = new GameObject("MainThreadDispatchHelper");
            MainThreadDispatchHelper helper = helperGO.AddComponent <MainThreadDispatchHelper>();

            helper.hideFlags = helperGO.hideFlags = HideFlags.HideInHierarchy | HideFlags.HideInInspector;
#if !UNITY_EDITOR
            GameObject.DontDestroyOnLoad(helperGO);
#else
            if (Application.isPlaying)
            {
                GameObject.DontDestroyOnLoad(helperGO);
            }
#endif

            helperCreated = true;
        }