void setRecord(bool on, bool immediate = false) { if (on & !playing) { playButton.phantomHit(true); setPlay(true, immediate); } recording = on; _timelinePlayer.setRecord(on); recButton.phantomHit(on); }
public void toggleRealCam(bool on) { if (broadcasting == on) { return; } broadcasting = on; if (on) { realCam.GetComponent <Skybox>().enabled = masterControl.instance.showEnvironment; cameraDeviceInterface[] cams = FindObjectsOfType <cameraDeviceInterface>(); for (int i = 0; i < cams.Length; i++) { if (cams[i] != this) { cams[i].toggleRealCam(false); cams[i].broadcastButton.phantomHit(false); } } } broadcastButton.phantomHit(on); recLight.SetActive(on); recMessage.SetActive(on); realCam.SetActive(on); }
public void toggleActive(bool on) { if (on == sphereActive) { return; } showButton.phantomHit(on); sphereActive = on; texSphere.gameObject.SetActive(on); }
public void playEvent(bool on) { playButton.phantomHit(on); }
public void forcePlay(bool on) { togglePlay(on); playButton.phantomHit(on); }