Exemple #1
0
 /*
  * private void Add_options()
  * {
  *  Set<Entry<String, String>> set = this.conf.sumo_output.EntrySet();
  *  Iterator<Entry<String, String>> it = set.Iterator();
  *  while (it.HasNext())
  *  {
  *      Entry<String, String> option = it.Next();
  *      conn.AddOption(option.GetKey(), option.GetValue());
  *  }
  * }
  */
 public virtual void Stop_instance()
 {
     try
     {
         conn.Close(false);
         this.running = false;
     }
     catch (Exception ex)
     {
         MonoBehaviour.print(ex.GetBaseException());
     }
 }
Exemple #2
0
 void OnApplicationQuit()
 {
     conn.Close(true);
 }