GetAveragedVolume() private method

private GetAveragedVolume ( ) : float
return float
Beispiel #1
0
    private void Update()
    {
        if (microphone.GetAveragedVolume() > 0.01)
        {
            inputManager.Shoot();
        }


        //if (Input.GetButton("Fire2"))
        //    inputManager.Shoot();
        if (Input.GetKeyDown(KeyCode.R))
        {
            inputManager.RestartGame();
        }
    }