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"); }
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); }
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); }