public void SetMode(CameraFilter.eCameraMode mode)
 {
     if (mode != cameraMode)
     {
         CameraFilter newFilter = CameraFilter.CreateFilter(mode);
         if (newFilter != null && newFilter.Activate())
         {
             if (cameraFilter != null)
             {
                 cameraFilter.Save(moduleName);
                 cameraFilter.Deactivate();
             }
             cameraFilter = newFilter;
             cameraFilter.Load(moduleName);
             cameraMode = mode;
         }
     }
 }
Exemplo n.º 2
0
 public void SetMode(CameraFilter.eCameraMode mode)
 {
     Debug.Log("SetMode, mode: " + mode.ToString());
     if (mode != cameraMode)
     {
         Debug.Log("SetMode 1");
         CameraFilter newFilter = CameraFilter.CreateFilter(mode);
         if (newFilter != null && newFilter.Activate())
         {
             Debug.Log("SetMode 2");
             if (cameraFilter != null)
             {
                 Debug.Log("SetMode 3");
                 cameraFilter.Save(moduleName);
                 cameraFilter.Deactivate();
             }
             Debug.Log("SetMode 4, moduleName: " + moduleName);
             cameraFilter = newFilter;
             cameraFilter.Load(moduleName);
             cameraMode = mode;
         }
     }
 }