Exemple #1
0
 static void BeforeSceneLoad()
 {
     // Debug.Log("BeforeSceneLoad");
     SystemConsoleToUnityLogRedirector.Setup();
     try { DestroyExistingMainThreadIfNeeded(); } catch (Exception e) { Debug.Log(e); }
     MainThread.instance.enabled = true; // Called to init main thread if not yet done by other logic
 }
Exemple #2
0
        static void Setup()
        {
            Log.instance = new LogToUnityDebugLog();
            SystemConsoleToUnityLogRedirector.Setup();
            var initMainThread = MainThread.instance;

            IoC.inject.SetSingleton <EnvironmentV2, EnvironmentV2Unity>(new EnvironmentV2Unity(), true);
            IoC.inject.SetSingleton <RestFactory, UnityRestFactory>(new UnityRestFactory(), true);
            EventBus.instance.Publish(UNITY_SETUP_DONE);
        }
Exemple #3
0
 static void BeforeSceneLoad()
 {
     Debug.Log("BeforeSceneLoad");
     SystemConsoleToUnityLogRedirector.Setup();
     try { DestroyExistingMainThreadIfNeeded(); } catch (Exception e) { Debug.Log(e); }
 }