Beispiel #1
0
                         private IEnumerator CallSoundApi(string url, DelegateAfterCallApi callback = null)
                         {
                             WWW www = new WWW(url);

                             yield return(www);

                             if (callback != null)
                             {
                                 string txt = "false";
                                 if (string.IsNullOrEmpty(www.error))
                                 {
                                     txt = www.text;
                                 }

                                 callback(txt);
                             }
                         }
Beispiel #2
0
                         public void GetMute(DelegateAfterCallApi callback)
                         {
                             var url = Authentication.WebServicePath + "Settings/IsInMute";

                             StartCoroutine(CallSoundApi(url, callback));
                         }