Example #1
0
 public void ConnectTo(Connector con)
 {
     if(connection == null)
     {
         connection = con;
         enabled = true;
         con.ConnectTo(this);
     }
 }
Example #2
0
 public void Disconnect()
 {
     if(connection != null)
     {
         Connector c = connection;
         connection = null;
         enabled = false;
         c.Disconnect();
     }
 }