Exemplo n.º 1
0
 /** CHECK FOR INTERNET CONNECTION **/
 private void checkInternet()
 {
     GamedoniaBackend.isInternetConnectionAvailable(delegate(bool success) {
         if (success)
         {
             i_access = true;
         }
         else
         {
             i_access = false;
             errorMsg = "No internet access";
             Debug.Log(errorMsg);
         }
     });
 }
Exemplo n.º 2
0
 public void CheckInternetConnection()
 {
     checkedInternet = false;
     noInternet      = false;
     GamedoniaBackend.isInternetConnectionAvailable(delegate(bool success) {
         if (success)
         {
             checkedInternet = true;
         }
         else
         {
             checkedInternet = true;
             noInternet      = true;
             ShowNoInternetPopup();
         }
     });
 }
Exemplo n.º 3
0
 /** CHECK FOR INTERNET CONNECTION **/
 private void checkInternet()
 {
     GamedoniaBackend.isInternetConnectionAvailable(delegate(bool success) {
         if (success)
         {
             i_access = true;
         }
         else
         {
             int errorCode = GamedoniaBackend.getLastError().httpErrorCode;
             if (errorCode == -100)
             {
                 SceneManager.LoadScene("noconnection");
             }
             i_access = false;
             errorMsg = "No internet access";
             Debug.Log(errorMsg);
         }
     });
 }