コード例 #1
0
        static public string isContextEngineCompatible()
        {
            string[] filters = new string[] { "~", "#", "network", "precheck" };

            for (int i = 0; i < filters.Length; i++)
            {
                if (EngineLoader.doActiveSceneNameContains(filters[i], true))
                {
                    return(filters[i]);
                }
            }

            return("");
        }
コード例 #2
0
        public void startupProcess()
        {
            //don't load engine on guide scenes (starting with ~)
            if (EngineLoader.doActiveSceneNameContains("~", true))
            {
                Debug.LogWarning("<color=red><b>guide scene</b> not loading engine here</color>");
                return;
            }

            if (!EngineLoader.hasAnyScenesInBuildSettings())
            {
                Debug.Log(getStamp() + "can't load ?");
            }

            StartCoroutine(processStartup());
        }