void OnApplicationQuit() { DBSocketRequest.Close(); UnityEngine.Debug.Log("Game quit"); StopChat(); if (lw != null) { UnityEngine.Debug.Log("stop toy lobby"); lw.Stop(); } if (gameWidget != null) { UnityEngine.Debug.Log("stop game"); gameWidget.Stop(); } if (!isTest) { LobbyWidget lobby = (LobbyWidget)DataPasser.Get().Get("lobby"); if (lobby != null) { UnityEngine.Debug.Log("stop actual lobby"); lobby.Stop(); } } }
public void GoToLobby() { DataPasser.Get().Set("tai", tai); LobbyWidget lobby = (LobbyWidget)DataPasser.Get().Get("lobby"); if (lobby != null) { UnityEngine.Debug.Log("stop lobby"); lobby.Stop(); } if (gameWidget != null) { gameWidget.Stop(); UnityEngine.Debug.Log("stop game widget"); } StopChat(); Application.LoadLevel(2); }
public void CloseWidget() { lobbyWidget.Stop(); UnityEngine.Debug.Log("Lobby quit"); }