Ejemplo n.º 1
0
    private void Update()
    {
        if (m_CurrentState)
        {
            m_CurrentState.OnUpdate();
        }

        if (Input.GetKeyDown("space"))
        {
            Debug.Log("space keyboard press");
            _mainCharacter.switchMyHead();
        }

        //if (!IsPermissionChecked && Permission.HasUserAuthorizedPermission(Permission.Microphone)) {
        //    IsPermissionChecked = true;

        //    //reload scene

        //}

        if (_mainCharacter == null)
        {
            return;
        }

        //if (recorder && recorder.LevelMeter != null)
        //{
        //    voiceDebugText.text = string.Format("Amp: avg. {0:0.000000}, peak {1:0.000000}", recorder.LevelMeter.CurrentAvgAmp, recorder.LevelMeter.CurrentPeakAmp);
        //}
    }