Ejemplo n.º 1
0
 private void Update()
 {
     if (m_networkManager.currentActiveRoom == null && GameData.MyTutorialStep <= 0)
     {
         HandlePlayerQuit();
         return;
     }
     sendHeartbeat();
     chat.OnUpdate();
     if (Input.GetKeyDown(KeyCode.LeftControl) || (Input.GetKeyDown(KeyCode.RightControl) && Input.GetKeyDown(KeyCode.F)))
     {
         Screen.fullScreen = !Screen.fullScreen;
     }
     if (bFullScreen != Screen.fullScreen || screenSpace.width != (float)Screen.width || screenSpace.height != (float)Screen.height)
     {
         StartCoroutine(UpdateScreenSpace());
     }
 }