saveWhenQuit() public method

public saveWhenQuit ( ) : void
return void
Example #1
0
    void OnApplicationQuit()
    {
        if (startParameter == "")
        {
            tdoane.client.Disconnect();
        }

        TcpHelper.SaveRecord();
        cardDescription.save();
        setting.saveWhenQuit();
        for (int i = 0; i < servants.Count; i++)
        {
            servants[i].OnQuit();
        }
        Running = false;
        try
        {
            TcpHelper.tcpClient.Close();
        }
        catch
        {
            //adeUnityEngine.Debug.Log(e);
        }
        Menu.deleteShell();
    }
Example #2
0
 void OnApplicationQuit()
 {
     TcpHelper.SaveRecord();
     cardDescription.save();
     setting.saveWhenQuit();
     for (int i = 0; i < servants.Count; i++)
     {
         servants[i].OnQuit();
     }
     Running = false;
     try
     {
         TcpHelper.tcpClient.Close();
     }
     catch (System.Exception e)
     {
         //adeUnityEngine.Debug.Log(e);
     }
     Menu.deleteShell();
 }
Example #3
0
 public void SaveConfig()
 {
     cardDescription.save();
     setting.save();
     setting.saveWhenQuit();
 }