Ejemplo n.º 1
0
 void Update()
 {
     if (!hasInited)
     {
         hasInited = true;
         // Remove the operator from the socket list.
         socketList = sockControl.getAllSockets();
         assignNames(1);
         bookMngr.populate(socketList, sockControl);
         portTapTarget = socketList [Random.Range(0, socketList.Count)];
         Debug.Log("TAP ALL CALLS INVOLVING " + portTapTarget);
     }
     //  Debug.Log("LENGHT" + socketList.Count);
     if (!loader.finishedLoading)
     {
         return;
     }
     //setGameState ();
     manageDay();
     timeElapsed += Time.deltaTime;
     if (timeElapsed >= callDelay)
     {
         //Debug.Log(timeElapsed);
         manageCalls();
         callDelay = Random.Range(betweenCalls_MIN, betweenCalls_MAX);
     }
     manageConnections(Time.deltaTime);
 }