void NoSignal() { if (encam2) { encam2 = false; } if (encam1) { encam1 = false; } _cameraarm1.targetTexture = null; _cameraarm2.targetTexture = null; _cameraarm1.enabled = false; _cameraarm2.enabled = false; MuestraUI.rawImage2.enabled = false; MuestraUI.rawImage22.enabled = false; MuestraUI.rawImage23.enabled = true; _camera.targetTexture = null; _camera.enabled = false; MuestraUI.rawImage.enabled = false; MuestraUI.rawImage11.enabled = false; MuestraUI.rawImage12.enabled = true; MuestraUI.UpdateText2("Camera(NO SIGNAL)"); MuestraUI.UpdateText("Camera(NO SIGNAL)"); MuestraUI.toggleButton.isOn = false; MuestraUI.toggleButton2.isOn = false; return; }
void WithPower() { bapp.CheckFov2(_cameraarm1, _cameraarm2); bapp.CheckFov(_camera); float shininess = Mathf.PingPong(Time.time * 5, 3f); MuestraUI.rawImage2.material.SetFloat("_NoiseOffset", shininess); MuestraUI.rawImage.material.SetFloat("_NoiseOffset", shininess); if (encam2) { _cameraarm1.enabled = true; _cameraarm2.enabled = true; _cameraarm1.targetTexture = (RenderTexture)MuestraUI.rawImage2.texture; _cameraarm2.targetTexture = (RenderTexture)MuestraUI.rawImage2.texture; MuestraUI.rawImage2.enabled = true; MuestraUI.rawImage22.enabled = false; MuestraUI.rawImage23.enabled = false; MuestraUI.UpdateText2("Camera Arm (ON)"); //return; } if (!encam2) { _cameraarm1.targetTexture = null; _cameraarm2.targetTexture = null; _cameraarm1.enabled = false; _cameraarm2.enabled = false; MuestraUI.rawImage2.enabled = false; MuestraUI.rawImage22.enabled = true; MuestraUI.rawImage23.enabled = false; MuestraUI.UpdateText2("Camera Arm (OFF)"); //return; } if (encam1) { _camera.enabled = true; _camera.targetTexture = (RenderTexture)MuestraUI.rawImage.texture; MuestraUI.rawImage.enabled = true; MuestraUI.rawImage11.enabled = false; MuestraUI.rawImage12.enabled = false; MuestraUI.UpdateText("Camera Insight (ON)"); //return; } if (!encam1) { _camera.targetTexture = null; _camera.enabled = false; MuestraUI.rawImage.enabled = false; MuestraUI.rawImage11.enabled = true; MuestraUI.rawImage12.enabled = false; MuestraUI.UpdateText("Camera Insight (OFF)"); //return; } }