public void PlayPostNarrativeCinematic() { if (cinCon != null) { cinCon.PlayCinematic(); } }
public void ActuateSwitch() { if (isDoorSwitch) { if (!door.isInputBlocked) { print("door switch is actuated!"); AM.PlayConsistentOneShot(switchOpenSound, switchOpenVolume); door.OpenCloseDoor(); isOpen = true; if (hasCinematic && cinCon != null) { cinCon.PlayCinematic(); } trigger.enabled = false; } else { Debug.LogWarning("Door is currently in use... wait for movement to finish."); } } if (isSpillSwitch) { print("spill switch is actuated!"); AM.PlayConsistentOneShot(valveOpenSound, valveOpenVolume); foreach (ToxicSpill ts in spillPipes) { ts.TurnOffSpillPipe(); } trigger.enabled = false; isOpen = true; } if (additionalGameObjects.Length > 0) { foreach (GameObject go in additionalGameObjects) { go.SetActive(false); Debug.Log(gameObject.name + " has disabled " + go.name); } } animator.SetBool("isOpen", isOpen); }