示例#1
0
 public void SetActiveCamera(BaseCamera newCamera)
 {
     if (activeCam == newCamera)
     {
         return;
     }
     newCamera.SetLastCameraRotation(activeCam.GetRotation());
     EnableCameraComponents(activeCam, false);
     EnableCameraComponents(newCamera, true);
     activeCam = newCamera;
 }