protected override void OnReverse() { if (activeCameraTrack == this) { activeCameraTrack = null; DirectorCamera.Disable(); } }
protected override void OnReverseEnter() { if (activeCameraTrack == null) { activeCameraTrack = this; DirectorCamera.Enable(); } }
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(); }