/// <summary> /// Called after disconnecting from the Photon server. /// </summary> public override void OnDisconnectedFromPhoton() { //switch from the online to the offline scene after connection is closed if (SceneManager.GetActiveScene().buildIndex != 0) { SceneManager.LoadScene(0); } DatabaseRequester.Logout(); }
/// <summary> /// Quit the game /// </summary> public void Quit() { DatabaseRequester.Logout(); Application.Quit(); }