Ejemplo n.º 1
0
 void Update()
 {
     if (m_voiceengine != null)
     {
         m_voiceengine.Poll();
     }
 }
Ejemplo n.º 2
0
 // Update is called once per frame
 void Update()
 {
     if (isRecord)
     {
         Vector3 v3 = Camera.main.ScreenToWorldPoint(new Vector3(Input.mousePosition.x, Input.mousePosition.y, transform.position.z));
         // Debug.LogError(v3.y - tempPosition_y);
         if (v3.y - tempPosition_y > 0.21f)//取消录音
         {
             stopDotween();
             _voiceTrans.gameObject.SetActive(false);
             _voiceObj.SetActive(true);
             isCancelRecord = true;
             //CancelRecord();
         }
         else
         {
             if (!isLimitTimeEnd)
             {
                 startDotween();
                 _voiceTrans.gameObject.SetActive(true);
                 _voiceObj.SetActive(false);
                 isCancelRecord = false;
             }
         }
         return;
     }
     else
     {
         UpdateVoicePlay();
     }
     if (VoiceFlag == 1 && m_voiceengine != null)
     {
         m_voiceengine.Poll();
     }
 }
Ejemplo n.º 3
0
        // Update is called once per frame
        public void Update()
        {
#if !UNITY_EDITOR
            try
            {
#endif

            if (VoiceState.UnInited == State)
            {
                return;
            }

            try
            {
                if (m_voiceengine != null)
                {
                    m_voiceengine.Poll();
                }
            }
            catch (Exception)
            {
            }



#if !UNITY_EDITOR
        }

        catch (Exception ex)
        {
            Logger.Error(ex.ToString());
        }
#endif
        }
Ejemplo n.º 4
0
 void Update()
 {
     if (m_voiceengine != null)
     {
         // 不断检测GVoice引擎回调
         m_voiceengine.Poll();
     }
 }
Ejemplo n.º 5
0
 void Update()
 {
     //PlayLog("update...");
     if (m_voiceengine == null)
     {
         PlayLog("m_voiceengine is null");
     }
     else
     {
         m_voiceengine.Poll();
     }
 }
Ejemplo n.º 6
0
 // Update is called once per frame
 void Update()
 {
     //Debug.Log("update...");
     if (m_voiceengine == null)
     {
         Debug.Log("m_voiceengine is null");
     }
     else
     {
         m_voiceengine.Poll();
     }
     m_logText.text = s_strLog;
 }
Ejemplo n.º 7
0
    // Update is called once per frame
    void Update()
    {
        if (m_voiceengine != null)
        {
            m_voiceengine.Poll();
            if (s_MicLevelEnabel)
            {
                s_logstr += "\r\n miclevel:" + m_voiceengine.GetMicLevel();
            }
        }

        m_logtext.text = s_logstr;
    }
Ejemplo n.º 8
0
        // Update is called once per frame
        public void Update()
        {
            //Debug.Log("update...");
            if (mVoiceEngine == null)
            {
#if !UNITY_MOBILE_LOCAL
                Debug.Log("m_voiceengine is null");
#endif
            }
            else
            {
                mVoiceEngine.Poll();
            }
        }