Пример #1
0
        private void _LoadMovie()
        {
            BinkPlayOptions bpo = this.getBinkPlayOptions();
            BinkPlugin      bp  = this.binkPlugin;
            string          url = this.filePath;

            if (bp.enabled && bp.MovieLoaded)
            {
                bp.Cleanup();
                //undo textureAspectRatio...
                this.UndoAspectRatios();
            }

            bp.SetAlpha(bpo.alphaChannel);
            bp.isGameSpeedAgnostic = this.isGameSpeedAgnostic;
            bp.enabled             = true;

            bool ok = bp.LoadMovie(url);

            if (ok)
            {
                this.textureAspectRatio = bp.getAspectRatio();
            }
            else
            {
                Debug.LogError("Problem loading Bink file " + url);
            }

            LocalMediaReady();
        }