GetAveragedVolume() 개인적인 메소드

private GetAveragedVolume ( ) : float
리턴 float
예제 #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();
        }
    }