/// <summary> /// Upon completing the scene, animations will play and a coroutine will activate. The orbits will disable. /// </summary> private void EnableFirstScene() { if (hasScenePlayed == false) { crowd.SetActive(true); confetti.SetActive(true); crowd.GetComponent <Animator>().enabled = true; orbit1.SetActive(false); orbit2.SetActive(false); hasScenePlayed = true; StartCoroutine(FlyTheLock()); if (StartedCutscene != null) { StartedCutscene.Invoke(); } } }
/// <summary> /// This is the second scene. After Completing, a norma crying animation will play inside the house /// </summary> private void EnableSecondScene() { lockScript.currentState = PlayerStates.Roaming; lockScript.LockisActive = false; interactedCamera.isFocused = false; brackets.SetActive(true); normaCrying.SetActive(true); teleportingDoor.SetActive(true); rampCollider.SetActive(true); FlyingDoor.enabled = true; subtitleManager.GetComponent <SubtitleManager>().TextSpeed = .5f; SubtitleText.enabled = true; subtitleTrackTwo.SetActive(true); isLockSequenceComplete = true; if (StartedCutscene != null) { StartedCutscene.Invoke(); } }