Assets/Scripts/Player/Controls/PlayerControllerScript.cs
/// <summary>
/// Update is called every frame, if the MonoBehaviour is enabled.
/// </summary>
Update is called every frame, if the MonoBehaviour is enabled.
Update is called every frame if the MonoBehaviour is enabled .
void Update()
        {
            if (!paused && !PlayerInstanciationScript.player.sleepState)
            {
                FetchOneTimeControls();
                FetchControls();
            }
            else if (!paused && PlayerInstanciationScript.player.sleepState)
            {
                if (KeyMapper.AnyKeyDown())
                {
                    PlayerInstanciationScript.player.WakeUp();
                }
            }
        }
void Update ( ) { if ( ! paused && ! PlayerInstanciationScript . player . sleepState ) { FetchOneTimeControls ( ) ; FetchControls ( ) ; } else if ( ! paused && PlayerInstanciationScript . player . sleepState ) { if ( KeyMapper . AnyKeyDown ( ) ) { PlayerInstanciationScript . player . WakeUp ( ) ; } } }
Update is called every frame, if the MonoBehaviour is enabled.
Update is called every frame if the MonoBehaviour is enabled .