Example #1
0
        private void Init()
        {
            Instance       = this;
            _configHandler = new StandaloneConfigHandler();

            ExplorerCore.Init(this);
        }
Example #2
0
        internal void Init()
        {
            Instance      = this;
            configHandler = new StandaloneConfigHandler();

            ExplorerCore.Init(this);
        }
Example #3
0
        private void Init()
        {
            Instance       = this;
            _configHandler = new StandaloneConfigHandler();

#if CPP
            ClassInjector.RegisterTypeInIl2Cpp <ExplorerBehaviour>();

            var obj = new GameObject(
                "ExplorerBehaviour",
                new Il2CppSystem.Type[] { Il2CppType.Of <ExplorerBehaviour>() }
                );
#else
            var obj = new GameObject(
                "ExplorerBehaviour",
                new Type[] { typeof(ExplorerBehaviour) }
                );
#endif

            GameObject.DontDestroyOnLoad(obj);
            obj.hideFlags = HideFlags.HideAndDontSave;

            ExplorerCore.Init(this);
        }