public Kontroler() { czyt = new StreamReader("porty.txt"); String tekst; tekst = czyt.ReadLine(); Debug.WriteLine("pierwszy port : " + tekst); _receiver = new STMReceiver(tekst); tekst = czyt.ReadLine(); Debug.WriteLine("drugi port : " + tekst); _receiver2 = new STMReceiver(tekst); czyt.Close(); _receiver.StartListening(); _receiver2.StartListening(); }
// Use this for initialization void Start () { SterowanieSTM = new STMReceiver(); SterowanieSTM.StartListening(); comparision = 10; }