Esempio n. 1
0
 protected override void OnReverse()
 {
     if (activeCameraTrack == this)
     {
         activeCameraTrack = null;
         DirectorCamera.Disable();
     }
 }
Esempio n. 2
0
 protected override void OnReverseEnter()
 {
     if (activeCameraTrack == null)
     {
         activeCameraTrack = this;
         DirectorCamera.Enable();
     }
 }
Esempio n. 3
0
        protected override void OnEnter()
        {
            if (activeCameraTrack != null)
            {
                return;
            }

            activeCameraTrack = this;

            firstShot   = (CameraShot)actions.FirstOrDefault(s => s.startTime >= this.startTime);
            lastShot    = (CameraShot)actions.LastOrDefault(s => s.endTime <= this.endTime);
            currentShot = firstShot;

            if (exitCameraOverride != null)
            {
                exitCameraOverride.gameObject.SetActive(false);
            }

            DirectorCamera.Enable();
        }