コード例 #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();
        }
コード例 #2
0
ファイル: LobbyScript.cs プロジェクト: Misttgun/Battle-Robot
 /// <summary>
 /// Quit the game
 /// </summary>
 public void Quit()
 {
     DatabaseRequester.Logout();
     Application.Quit();
 }