Пример #1
0
 // Start is called before the first frame update
 void Start()
 {
     storedData = GameObject.Find("PassedData").GetComponent <StoredServerData>();
     waitTime   = storedData.pauseLimit;
     gameTime   = storedData.roundLimit;
     Debug.Log(count++);
     currentTime = 0;
 }
Пример #2
0
        private void Start()
        {
            gameManger = GameObject.Find("Game Manager").GetComponent <GameManager>();
            serverData = GameObject.Find("PassingData").GetComponent <StoredServerData>();
            port       = serverData.parsedPortNumber;
            serverData.Destory();

            Instance  = this;
            msgThread = new Thread(ReceiveMessages);
            msgThread.Start();
            snapShot = new Thread(SendSnapshot);
            snapShot.Start();
        }