private IEnumerator Room1Finished()
        {
            Finished = true;
            yield return(new WaitForSeconds(0.75f));

            ScreenFlash.Flash(FlashTime);
            GameController.Instance.MoreColor();
        }
Beispiel #2
0
        private IEnumerator CompletedPuzzle()
        {
            currentState = State.Inactive;

            yield return(new WaitForSeconds(5));

            yield return(new WaitForSeconds(0.75f));

            foreach (var character in Characters)
            {
                character.GetComponent <WanderingCharacter>().Sleep();
            }

            ScreenFlash.Flash(FlashTime);
            GameController.Instance.MoreColor();
        }
        private IEnumerator DoSolved()
        {
            Solved = true;
            OnSolved?.Invoke();

            yield return(new WaitForSeconds(0.75f));

            CameraController.Instance.ShakeOn();
            Room3FinalLadder.Instance.Move();
            yield return(new WaitForSeconds(Room3FinalLadder.Instance.MoveTime));

            CameraController.Instance.ShakeOff();

            foreach (var character in Characters)
            {
                character.Sleep();
            }

            ScreenFlash.Flash(FlashTime);
            GameController.Instance.MoreColor();
        }
Beispiel #4
0
 private void OnInteract()
 {
     RoomController.Instance.GoTo(4);
     ScreenFlash.Flash(5, Ease.InQuad);
 }
 private void Start()
 {
     ScreenFlash.Flash(1);
 }
Beispiel #6
0
 public void OnInsertedKey()
 {
     ScreenFlash.Flash(1.0f);
     NextRiddle();
 }