Exemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     connection     = GameObject.FindWithTag("ConnectionManager").GetComponent <ConnectionManager>();
     menuController = GameObject.FindWithTag("MainMenuController").GetComponent <MenuInterfaceController>();
     gc             = GameObject.FindWithTag("GlobalController").GetComponent <GlobalController>();
     if (connection.evenMoreConnected)
     {
         menuController.ShowBox(MenuInterfaceController.box.lobby);
         gc.BackToLobby();
         gc.playersUpdated = true;
     }
     connection.FindSceneManager();
 }