Пример #1
0
 public static SerialDataHandler getInstance()
 {
     if (Instance == null)
     {
         Instance = new SerialDataHandler();
     }
     return(Instance);
 }
Пример #2
0
        private VRHandler()
        {
#if !DEBUG
            Process.Start($"{Environment.GetFolderPath(Environment.SpecialFolder.Desktop)}/simbat.lnk");
            Thread.Sleep(2000);
#endif
            ConnectToVRServer("145.48.6.10", 6666);
            this.PcName = Environment.UserName;
            entities    = new List <Entity>();
            @lock       = false;

            SerialDataHandler.getInstance().AddSubscriberToHandler(this);
            chatMessages  = new List <String>();
            donewithsetup = false;
        }