Esempio n. 1
0
        public MoviePlayer(MoviesConfiguration config, IResourceProviderManager providerManager, ILocalizationManager localeManager, IInputManager inputManager)
        {
            this.Configuration   = config;
            this.providerManager = providerManager;
            this.localeManager   = localeManager;
            this.inputManager    = inputManager;

            FadeTexture = config.CustomFadeTexture ? config.CustomFadeTexture : Engine.LoadInternalResource <Texture2D>("Textures/Black");
        }
Esempio n. 2
0
        public MoviePlayer(MoviesConfiguration config, IResourceProviderManager providerManager, ILocalizationManager localeManager, IInputManager inputManager)
        {
            this.Configuration   = config;
            this.providerManager = providerManager;
            this.localeManager   = localeManager;
            this.inputManager    = inputManager;

            FadeTexture = ObjectUtils.IsValid(config.CustomFadeTexture) ? config.CustomFadeTexture : Resources.Load <Texture2D>(defaultFadeTextureResourcesPath);
        }
Esempio n. 3
0
        public MoviePlayer(MoviesConfiguration config, ResourceProviderManager providerManager, LocalizationManager localeManager, InputManager inputManager)
        {
            this.config          = config;
            this.providerManager = providerManager;
            this.localeManager   = localeManager;
            this.inputManager    = inputManager;
            waitForEndOfFrame    = new WaitForEndOfFrame();
            waitForFade          = new WaitForSeconds(config.FadeDuration);

            FadeTexture = ObjectUtils.IsValid(config.CustomFadeTexture) ? config.CustomFadeTexture : Resources.Load <Texture2D>(defaultFadeTextureResourcesPath);
        }