Beispiel #1
0
 public override void HonoAwake()
 {
     base.HonoAwake();
     this.MBGInitialized = 1;
     this.mbgCamera      = this.cameraObject.GetComponent <Camera>();
     this.process        = this.cameraObject.GetComponent <MovieMaterialProcessor>();
     this.movieMaterial  = MovieMaterial.New(this.process);
     this.moviePlane.GetComponent <Renderer>().material = this.movieMaterial.Material;
     this.moviePlane.transform.localScale = Vector3.Scale(new Vector3(32f, 1f, 22.4f), MovieMaterial.ScaleVector);
     this.mbgCamera.depth           = -4096f;
     this.movieMaterial.FastForward = (MovieMaterial.FastForwardMode)((!FF9StateSystem.Settings.IsFastForward) ? MovieMaterial.FastForwardMode.Normal : MovieMaterial.FastForwardMode.HighSpeed);
     this.shader = ShadersLoader.Find("PSX/FieldMapActorMBGMask");
     this.SetFastForward(HonoBehaviorSystem.Instance.IsFastForwardModeActive());
     this.isFastForwardOnBeforePlayingMBG = false;
     this.played = false;
 }
Beispiel #2
0
    public void Start()
    {
        this.movieMaterial = MovieMaterial.New(base.gameObject.AddComponent <MovieMaterialProcessor>());
        SoundLib.LoadMovieResources("MovieAudio/", MovieTestScript.MovieFiles);
        GameObject gameObject = GameObject.Find("Plane");

        gameObject.GetComponent <Renderer>().material = this.movieMaterial.Material;
        gameObject.transform.localScale = Vector3.Scale(gameObject.transform.localScale, MovieMaterial.ScaleVector);
        MovieMaterial movieMaterial = this.movieMaterial;

        movieMaterial.OnFinished = (Action)Delegate.Combine(movieMaterial.OnFinished, new Action(delegate
        {
            this.PlayNextMovie();
        }));
        this.PlayNextMovie();
    }