void Start()
    {
        moviemode = GetComponent <MovieMode>();
        if (ControlledObjectList == null)
        {
            ControlledObjectList = new List <List <GameObject> >();
        }

        ControlledObjectList.Clear();
        ControlledObjectList.Add(group0);
        ControlledObjectList.Add(group1);
        ControlledObjectList.Add(group2);
        ControlledObjectList.Add(group3);
        ControlledObjectList.Add(group4);
        ControlledObjectList.Add(group5);

        controlledObjectIndex = Mathf.Clamp(controlledObjectIndex, 0, ControlledObjectList.Count - 1);
        for (int i = 0; i < ControlledObjectList.Count; i++)
        {
            SetControlledObjectActive(ControlledObjectList[i], false);
        }
        SetControlledObjectActive(ControlledObjectList[controlledObjectIndex], true);

        render = WaveVR_Render.Instance;
    }
Esempio n. 2
0
        public virtual void StartNewRecording()
        {
            Mode = MovieMode.Record;
            if (Global.Config.EnableBackupMovies && MakeBackup && Log.Any())
            {
                SaveBackup();
                MakeBackup = false;
            }

            Log.Clear();
        }
Esempio n. 3
0
        public virtual void StartNewRecording()
        {
            Mode = MovieMode.Record;
            if (Session.Settings.EnableBackupMovies && MakeBackup && Log.Any())
            {
                SaveBackup();
                MakeBackup = false;
            }

            Log.Clear();
        }
Esempio n. 4
0
        public virtual bool Stop(bool saveChanges = true)
        {
            bool saved = false;

            if (saveChanges)
            {
                if (Mode == MovieMode.Record || (this.IsActive() && Changes))
                {
                    Save();
                    saved = true;
                }
            }

            Changes = false;
            Mode    = MovieMode.Inactive;

            return(saved);
        }
Esempio n. 5
0
 public void FinishedMode()
 {
     Mode = MovieMode.Finished;
 }
Esempio n. 6
0
 public virtual void SwitchToPlay()
 {
     Mode = MovieMode.Play;
 }
Esempio n. 7
0
 public virtual void SwitchToRecord()
 {
     Mode = MovieMode.Record;
 }
Esempio n. 8
0
 public virtual void StartNewPlayback()
 {
     Mode = MovieMode.Play;
 }
Esempio n. 9
0
 public void SwitchToPlay() => Mode     = MovieMode.Play;
Esempio n. 10
0
 public void SwitchToRecord() => Mode   = MovieMode.Record;
Esempio n. 11
0
 public void StartNewPlayback() => Mode = MovieMode.Play;