Exemplo n.º 1
0
        static protected EngineLoader create()
        {
            loader = GameObject.FindObjectOfType <EngineLoader>();
            if (loader != null)
            {
                return(loader);
            }

            loader = new GameObject("[loader]").AddComponent <EngineLoader>();
            return(loader);
        }
Exemplo n.º 2
0
        void Awake()
        {
            _manager = this;

            if (eos == null)
            {
                eos = new List <EngineObject>();
            }

            Debug.Log(GlobalSettingsSystem.getSystemInfo());

            state_loading = true;
            state_live    = false;

            StacktraceMgr.setupTraceLog();

            EngineLoader.get().onLoadingDone += engine_scenes_loaded;
        }
Exemplo n.º 3
0
        //[RuntimeInitializeOnLoadMethod]
        static public void init()
        {
#if UNITY_EDITOR
            Debug.Log("<color=gray><b>~EngineLoader~</b> | app entry point</color>");
#endif

            string filter = isContextEngineCompatible();
            if (filter.Length > 0)
            {
                Debug.LogWarning("won't load engine here : scene starts with prefix : <b>" + filter + "</b>");
                return;
            }

            compatibility = true;

            loader = create();

            loader.startupProcess();
        }