IEnumerator Freeze()
    {
        yield return(new WaitForSeconds(0.1f));

        player = FlameKeeper.Get().levelController.GetPlayer();
        player.DisableInput();
        yield return(new WaitForSeconds(duration));

        player.EnableInput();
    }
Ejemplo n.º 2
0
    public void OnWhiteOutComplete()
    {
        whiteOutAnimator.SetBool("StartWhite", false);

        if (!FlameKeeper.Get().levelController.CutscenesDisabled() && startingCutscene != null && startingCamera != null)
        {
            startingCutscene.PlayTimeline();
            startingCamera.Priority = 1;
        }
        else
        {
            player.EnableInput();
        }
    }