Exemplo n.º 1
0
 public void YesAction()
 {
     if (PlayerPrefs.GetInt(LudoTags.GAME_TYPE) != LudoTags.OFFLINE)
     {
         if (appwarp.socketConnected)
         {
             appwarp.leaveGame();
         }
         else
         {
             SceneManager.LoadSceneAsync("MainLobby");
         }
     }
     else
     {
         LudoDelegate.leaveGame();
         // SceneManager.LoadSceneAsync("LobiScene");
     }
     transform.gameObject.SetActive(false);
 }