Esempio 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();
 }
Esempio n. 2
0
 private void Start()
 {
     tcp = new TCP();
     udp = new UDP();
 }
Esempio n. 3
0
 private Client()
 {
     Get = this;
     tcp = new TCP();
     udp = new UDP();
 }