コード例 #1
0
 void Message()
 {
     if (MultiLanguage.GetCurrentLanguage() == "EN" && Constants.IsVoiceEnabled)
     {
         TVMUtility.PlayVoice(3, null, null, "EN");
     }
     if (MultiLanguage.GetCurrentLanguage() == "ML" && Constants.IsVoiceEnabled)
     {
         TVMUtility.PlayVoice(3, null, null, "ML");
     }
     if (MultiLanguage.GetCurrentLanguage() == "IN" && Constants.IsVoiceEnabled)
     {
         TVMUtility.PlayVoice(3, null, null, "IN");
     }
 }
コード例 #2
0
        async void LastMessage()
        {
            if (MultiLanguage.GetCurrentLanguage() == "EN" && Constants.IsVoiceEnabled)
            {
                TVMUtility.PlayVoice(10, null, null, "EN");
            }
            if (MultiLanguage.GetCurrentLanguage() == "ML" && Constants.IsVoiceEnabled)
            {
                TVMUtility.PlayVoice(10, null, null, "ML");
            }
            if (MultiLanguage.GetCurrentLanguage() == "IN" && Constants.IsVoiceEnabled)
            {
                TVMUtility.PlayVoice(10, null, null, "IN");
            }

            if (Constants.IsVoiceEnabled)
            {
                await Task.Delay(5000);
            }
        }