Ejemplo n.º 1
0
        private SceneLoaderRequestResult ScenesExistsInspection(SceneCollection collection)
        {
            List <string> scenesName          = _bundle.Scenes.ConvertAll(scene => scene.SceneName);
            bool          atLeast1SceneExists = collection.ScenesExists(scenesName, false);

            return
                ((atLeast1SceneExists) ?
                 (SceneLoaderConstants.REQUEST_RESULTS[SceneLoaderReturnType.LoadRejectedSceneExists]) :
                 (SceneLoaderConstants.REQUEST_RESULTS[SceneLoaderReturnType.Accepted]));
        }
Ejemplo n.º 2
0
        internal override SceneLoaderRequestResult Inspection(SceneCollection collection, bool forceNotSuppressible)
        {
            if (_scenes == null || _scenes.Count == 0)
            {
                return(SceneLoaderConstants.REQUEST_RESULTS[SceneLoaderReturnType.UnloadRejectedSceneNotExists]);
            }

            List <string> scenesName = _scenes.ConvertAll(scene => scene.SceneName);
            bool          allExists  = collection.ScenesExists(scenesName, true);

            return
                ((allExists)
                ? (SceneLoaderConstants.REQUEST_RESULTS[SceneLoaderReturnType.Accepted])
                : (SceneLoaderConstants.REQUEST_RESULTS[SceneLoaderReturnType.UnloadRejectedSceneNotExists]));
        }