Ejemplo n.º 1
0
        /// <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();
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Quit the game
 /// </summary>
 public void Quit()
 {
     DatabaseRequester.Logout();
     Application.Quit();
 }