Beispiel #1
0
 void CheckConditions()
 {
     if (cam.targetTexture != null && !haveRenderTexture)
     {
         cam.enabled = false;
         cameraManager.UpdateCameraState(cam, false);
         haveRenderTexture = false;
         return;
     }
     if (cam.targetTexture == null && haveRenderTexture)
     {
         cam.enabled = true;
         cameraManager.UpdateCameraState(cam, true);
         haveRenderTexture = false;
         return;
     }
 }