Exemple #1
0
 public bool onChangeCameraContextEvent(CinematographyEvents.ChangeCameraContextEvent evt)
 {
     if (evt.Context == Director.CameraContext.Cinematic)
     {
         justEnabled  = !base.enabled;
         base.enabled = true;
     }
     else
     {
         base.enabled = false;
     }
     return(false);
 }
 private bool onChangeCameraContextEvent(CinematographyEvents.ChangeCameraContextEvent evt)
 {
     if (nextNode != evt.Context)
     {
         blendCurve    = evt.BlendCurve;
         blendDuration = evt.BlendDuration;
         if (curNode == evt.Context)
         {
             isBlendingFromPrevFrame = true;
             prevCamPos = mainCamera.position;
             prevCamRot = mainCamera.rotation;
         }
         nextNode     = evt.Context;
         curBlendTime = 0f;
         isBlending   = true;
     }
     return(false);
 }