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; }
private IEnumerator Room1Finished() { Finished = true; yield return(new WaitForSeconds(0.75f)); ScreenFlash.Flash(FlashTime); GameController.Instance.MoreColor(); }
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(); }
private void OnInteract() { RoomController.Instance.GoTo(4); ScreenFlash.Flash(5, Ease.InQuad); }
private void Start() { ScreenFlash.Flash(1); }
public void OnInsertedKey() { ScreenFlash.Flash(1.0f); NextRiddle(); }