Ejemplo n.º 1
0
 public Client()
 {
     if (Instance == null)
     {
         Instance = this;
     }
     else if (Instance != this)
     {
         //this = null;
         //delete(this);
         throw new InvalidOperationException("Could not Create a new client, because an instance already Exists");
         //return;
     }
     //this.id = id;
     tcp = new TCP();
     udp = new UDP();
 }
Ejemplo n.º 2
0
 private void Start()
 {
     tcp = new TCP();
     udp = new UDP();
 }
Ejemplo n.º 3
0
 private Client()
 {
     Get = this;
     tcp = new TCP();
     udp = new UDP();
 }