Example #1
0
    private void Update()
    {
        if (Input.GetKeyDown(KeyCode.R))
        {
            AudioManager.PlayOneShot(GameSettings.ResetSFX);
            LoadingScreen.Show(() => SceneManager.LoadScene(SceneManager.GetActiveScene().name));
        }
        CheckSetting();
        xInput = _inputProvider.GetXInput();
        yInput = _inputProvider.GetYInput();

        if (_inputProvider.GetUseInput())
        {
            TryUse();
        }

        if (_inputProvider.GetDiscardInput())
        {
            TryDiscard();
        }
    }