예제 #1
0
 private void Awake()
 {
     Instance               = this;
     spriteRenderer         = GetComponent <SpriteRenderer>();
     spriteRenderer.color   = new Color(spriteRenderer.color.r, spriteRenderer.color.g, spriteRenderer.color.b, 0);
     spriteRenderer.enabled = true;
 }
예제 #2
0
        private IEnumerator Room1Finished()
        {
            Finished = true;
            yield return(new WaitForSeconds(0.75f));

            ScreenFlash.Flash(FlashTime);
            GameController.Instance.MoreColor();
        }
예제 #3
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();
        }
예제 #4
0
        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();
        }
예제 #5
0
 private void OnInteract()
 {
     RoomController.Instance.GoTo(4);
     ScreenFlash.Flash(5, Ease.InQuad);
 }
예제 #6
0
 private void Start()
 {
     ScreenFlash.Flash(1);
 }
예제 #7
0
 public void OnInsertedKey()
 {
     ScreenFlash.Flash(1.0f);
     NextRiddle();
 }